MCPcopy Create free account
hub / github.com/antlr/codebuff / toString

Method toString

output/java_guava/1.4.18/CacheBuilder.java:878–915  ·  view source on GitHub ↗

Returns a string representation for this CacheBuilder instance. The exact form of the returned string is not specified.

()

Source from the content-addressed store, hash-verified

876 */
877
878 @Override
879 public String toString() {
880 MoreObjects.ToStringHelper s = MoreObjects.toStringHelper(this);
881 if (initialCapacity != UNSET_INT) {
882 s.add("initialCapacity", initialCapacity);
883 }
884 if (concurrencyLevel != UNSET_INT) {
885 s.add("concurrencyLevel", concurrencyLevel);
886 }
887 if (maximumSize != UNSET_INT) {
888 s.add("maximumSize", maximumSize);
889 }
890 if (maximumWeight != UNSET_INT) {
891 s.add("maximumWeight", maximumWeight);
892 }
893 if (expireAfterWriteNanos != UNSET_INT) {
894 s.add("expireAfterWrite", expireAfterWriteNanos + "ns");
895 }
896 if (expireAfterAccessNanos != UNSET_INT) {
897 s.add("expireAfterAccess", expireAfterAccessNanos + "ns");
898 }
899 if (keyStrength != null) {
900 s.add("keyStrength", Ascii.toLowerCase(keyStrength.toString()));
901 }
902 if (valueStrength != null) {
903 s.add("valueStrength", Ascii.toLowerCase(valueStrength.toString()));
904 }
905 if (keyEquivalence != null) {
906 s.addValue("keyEquivalence");
907 }
908 if (valueEquivalence != null) {
909 s.addValue("valueEquivalence");
910 }
911 if (removalListener != null) {
912 s.addValue("removalListener");
913 }
914 return s.toString();
915 }
916}

Callers

nothing calls this directly

Calls 5

toStringHelperMethod · 0.95
toLowerCaseMethod · 0.95
addMethod · 0.65
toStringMethod · 0.65
addValueMethod · 0.45

Tested by

no test coverage detected