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 int
The key numeric value, using for sorting purpose only.private final String
The key-value pair, and the identity string representation of the value.private final String
The key-value pair, and the identity string representation of the value.private final String
The key-value pair, and the identity string representation of the value. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
CacheRecord
(Object key, Object value) Creates a new record for the given key-value pair. -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(CacheRecord other) Compares with the given record for ordering.(package private) static void
printCacheContent
(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:
compareTo
in interfaceComparable<CacheRecord>
-
printCacheContent
Implementation of the publicConcurrentAuthorityFactory.printCacheContent(PrintWriter)
method.- Parameters:
cache
- the cache.out
- the output writer, ornull
for the standard output stream.
-