Class AbstractModularValueConverter.ConversionKey
- java.lang.Object
-
- de.gebit.integrity.parameter.conversion.AbstractModularValueConverter.ConversionKey
-
- Enclosing class:
- AbstractModularValueConverter
protected static class AbstractModularValueConverter.ConversionKey extends java.lang.Object
This class defines a key for efficient searching for conversions in maps.- Author:
- Rene Schneider - initial API and implementation
-
-
Constructor Summary
Constructors Constructor Description ConversionKey(java.lang.Class<?> aSourceType, java.lang.Class<?> aTargetType)
Creates a new instance.ConversionKey(java.lang.Class<? extends Conversion<?,?>> aConversion)
Takes aConversion
implementation and determines the applicable conversion key.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object anObject)
java.util.List<AbstractModularValueConverter.ConversionKey>
generateDerivedKeys()
Generates the derived conversion keys from the current key.java.lang.Class<?>
getSourceType()
java.lang.Class<?>
getTargetType()
int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
ConversionKey
public ConversionKey(java.lang.Class<?> aSourceType, java.lang.Class<?> aTargetType)
Creates a new instance.- Parameters:
aSourceType
- the source typeaTargetType
- the target type
-
ConversionKey
public ConversionKey(java.lang.Class<? extends Conversion<?,?>> aConversion)
Takes aConversion
implementation and determines the applicable conversion key.- Parameters:
aConversion
- the conversion to look at
-
-
Method Detail
-
getSourceType
public java.lang.Class<?> getSourceType()
-
getTargetType
public java.lang.Class<?> getTargetType()
-
generateDerivedKeys
public java.util.List<AbstractModularValueConverter.ConversionKey> generateDerivedKeys()
Generates the derived conversion keys from the current key. "Derived keys" means keys which cover the whole target type superclass hierarchy.- Returns:
- the derived key list
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object anObject)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-