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

Method toString

output/java_guava/1.4.19/CacheBuilder.java:883–920  ·  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

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

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