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 thetypeis 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 aPropertyAccessorwill be associated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares this key with the given object for equality.inthashCode()Returns a hash code value for this key.(package private) final Stringinvalid()Creates an error message for an invalid key.(package private) final booleanisValid()toString()Returns a string representation for debugging purpose only.(package private) final StringCreates an error message for an unrecognized type.
-
Field Details
-
type
The metadata class (interface or implementation) for which aPropertyAccessorwill be associated. May be null if unknown, in which caseisValid()returnsfalse. -
propertyType
If thetypeis 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.simplepackage.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.
-