Returns a string representation for this CacheBuilder instance. The exact form of the returned string is not specified.
()
| 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 | } |
nothing calls this directly
no test coverage detected