Package org.apache.sis.metadata
Class CacheKey
java.lang.Object
org.apache.sis.metadata.CacheKey
A key in the
MetadataStandard
internal cache.- Since:
- 0.8
- Version:
- 0.8
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Class<?>
If thetype
is an implementation class of a property, then the type declared in the signature for that property.(package private) final Class<?>
The metadata class (interface or implementation) for which aPropertyAccessor
will be associated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares this key with the given object for equality.int
hashCode()
Returns a hash code value for this key.(package private) final String
invalid()
Creates an error message for an invalid key.(package private) final boolean
isValid()
toString()
Returns a string representation for debugging purpose only.(package private) final String
Creates an error message for an unrecognized type.
-
Field Details
-
type
The metadata class (interface or implementation) for which aPropertyAccessor
will be associated. May be null if unknown, in which caseisValid()
returnsfalse
. -
propertyType
If thetype
is an implementation class of a property, then the type declared in the signature for that property. This information allows to handle classes that implement more than one metadata interfaces for their convenience. Some examples are found in theorg.apache.sis.internal.simple
package.This field shall never be null. If there is no property type information, then this field shall be set to
Object.class
.
-
-
Constructor Details
-
CacheKey
CacheKey(Class<?> type) Creates a new key without information on the property type. -
CacheKey
Creates a new key to use in the cache.
-
-
Method Details
-
isValid
final boolean isValid() -
hashCode
public int hashCode()Returns a hash code value for this key. -
equals
Compares this key with the given object for equality. -
toString
Returns a string representation for debugging purpose only. -
unrecognized
Creates an error message for an unrecognized type. -
invalid
Creates an error message for an invalid key.
-