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