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

Method toString

output/java_guava/1.4.13/CacheBuilder.java:876–913  ·  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

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

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