Class CacheRecord
java.lang.Object
org.apache.sis.referencing.factory.CacheRecord
- All Implemented Interfaces:
Comparable<CacheRecord>
Implementation of
ConcurrentAuthorityFactory.printCacheContent(PrintWriter).
Instance of this class represent a single record in the cache content to be listed.- Since:
- 0.7
- Version:
- 0.7
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe key numeric value, using for sorting purpose only.private final StringThe key-value pair, and the identity string representation of the value.private final StringThe key-value pair, and the identity string representation of the value.private final StringThe key-value pair, and the identity string representation of the value. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCacheRecord(Object key, Object value) Creates a new record for the given key-value pair. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(CacheRecord other) Compares with the given record for ordering.(package private) static voidprintCacheContent(Map<?, ?> cache, PrintWriter out) Implementation of the publicConcurrentAuthorityFactory.printCacheContent(PrintWriter)method.
-
Field Details
-
key
The key-value pair, and the identity string representation of the value. -
value
The key-value pair, and the identity string representation of the value. -
identity
The key-value pair, and the identity string representation of the value. -
code
private final int codeThe key numeric value, using for sorting purpose only.
-
-
Constructor Details
-
CacheRecord
Creates a new record for the given key-value pair.
-
-
Method Details
-
compareTo
Compares with the given record for ordering.- Specified by:
compareToin interfaceComparable<CacheRecord>
-
printCacheContent
Implementation of the publicConcurrentAuthorityFactory.printCacheContent(PrintWriter)method.- Parameters:
cache- the cache.out- the output writer, ornullfor the standard output stream.
-