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

Method toString

corpus/java/training/guava/cache/CacheBuilder.java:857–894  ·  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

855 * string is not specified.
856 */
857 @Override
858 public String toString() {
859 MoreObjects.ToStringHelper s = MoreObjects.toStringHelper(this);
860 if (initialCapacity != UNSET_INT) {
861 s.add("initialCapacity", initialCapacity);
862 }
863 if (concurrencyLevel != UNSET_INT) {
864 s.add("concurrencyLevel", concurrencyLevel);
865 }
866 if (maximumSize != UNSET_INT) {
867 s.add("maximumSize", maximumSize);
868 }
869 if (maximumWeight != UNSET_INT) {
870 s.add("maximumWeight", maximumWeight);
871 }
872 if (expireAfterWriteNanos != UNSET_INT) {
873 s.add("expireAfterWrite", expireAfterWriteNanos + "ns");
874 }
875 if (expireAfterAccessNanos != UNSET_INT) {
876 s.add("expireAfterAccess", expireAfterAccessNanos + "ns");
877 }
878 if (keyStrength != null) {
879 s.add("keyStrength", Ascii.toLowerCase(keyStrength.toString()));
880 }
881 if (valueStrength != null) {
882 s.add("valueStrength", Ascii.toLowerCase(valueStrength.toString()));
883 }
884 if (keyEquivalence != null) {
885 s.addValue("keyEquivalence");
886 }
887 if (valueEquivalence != null) {
888 s.addValue("valueEquivalence");
889 }
890 if (removalListener != null) {
891 s.addValue("removalListener");
892 }
893 return s.toString();
894 }
895}

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