@Override public void serialize(CacheBuilderSpec value, JsonGenerator gen, SerializerProvider serializers) throws IOException { gen.writeString(value.toParsableString()); } }
/** * 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(); }
/** * 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(); }
/** * 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 void serialize(CacheBuilderSpec value, JsonGenerator gen, SerializerProvider serializers) throws IOException { gen.writeString(value.toParsableString()); } }
@Override public void serialize(CacheBuilderSpec value, JsonGenerator gen, SerializerProvider serializers) throws IOException { gen.writeString(value.toParsableString()); } }
/** * Returns a string representation for this CacheBuilderSpec instance. * The form of this representation is not guaranteed. */ @Override public String toString() { return Objects.toStringHelper(this).addValue(toParsableString()).toString(); }
/** * Returns a string representation for this CacheBuilderSpec instance. * The form of this representation is not guaranteed. */ @Override public String toString() { return Objects.toStringHelper(this).addValue(toParsableString()).toString(); }
/** * Returns a string representation for this CacheBuilderSpec instance. * The form of this representation is not guaranteed. */ @Override public String toString() { return Objects.toStringHelper(this).addValue(toParsableString()).toString(); }
/** * 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(); }
/** * Returns a string representation for this CacheBuilderSpec instance. * The form of this representation is not guaranteed. */ @Override public String toString() { return Objects.toStringHelper(this).addValue(toParsableString()).toString(); }
/** * 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(); }
/** * 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(); }
/** * * @return Map containing the configuration keys and values of the {@link #spec cache specification}. */ public Map<String,String> toMap() { final Map<String,String> map = new LinkedHashMap<>(); for (final String keyValuePair : KEYS_SPLITTER.split(spec.toParsableString())) { final List<String> keyAndValue = copyOf(KEY_VALUE_SPLITTER.split(keyValuePair)); checkArgument(!keyAndValue.isEmpty(), "blank key-value pair"); checkArgument(keyAndValue.size() <= 2, "key-value pair %s with more than one equals sign", keyValuePair); map.put(keyAndValue.get(0), keyAndValue.size() == 1 ? "true" : keyAndValue.get(1)); } return map; } }
/** * Returns a string representation for this CacheBuilderSpec instance. * The form of this representation is not guaranteed. */ @Override public String toString() { return Objects.toStringHelper(this).addValue(toParsableString()).toString(); }
/** * Returns a string representation for this CacheBuilderSpec instance. * The form of this representation is not guaranteed. */ @Override public String toString() { return Objects.toStringHelper(this).addValue(toParsableString()).toString(); }
/** * Returns a string representation for this CacheBuilderSpec instance. * The form of this representation is not guaranteed. */ @Override public String toString() { return Objects.toStringHelper(this).addValue(toParsableString()).toString(); }
/** * Returns a {@link String} instance representing the configuration parameter's {@literal value}. * * @param value The configuration parameter's {@link CacheBuilderSpec} value * @return A {@link String} instance representing the configuration parameter's typed value */ @Override public String convertTo(CacheBuilderSpec value) { if (value == null) { throw new ParameterException("Couldn't convert \"null\" to String."); } return value.toParsableString(); } }