/** * Returns a string representation for this CacheBuilderSpec instance. The form of this * representation is not guaranteed. */ @Override public String toString() { return MoreObjects.toStringHelper(this).addValue(toParsableString()).toString(); }
@Override public String toString() { return MoreObjects.toStringHelper(ServiceManager.class) .add("services", Collections2.filter(services, not(instanceOf(NoOpService.class)))) .toString(); }
@SuppressWarnings("unchecked") // safe covariant cast @GwtIncompatible("To be supported") <K extends K0, V extends V0> RemovalListener<K, V> getRemovalListener() { return (RemovalListener<K, V>) MoreObjects.firstNonNull(removalListener, NullListener.INSTANCE); }