Package org.grails.encoder
Class DefaultCodecIdentifier
java.lang.Object
org.grails.encoder.DefaultCodecIdentifier
- All Implemented Interfaces:
CodecIdentifier
default implementation of
CodecIdentifier- Since:
- 2.3
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultCodecIdentifier(String codecName) DefaultCodecIdentifier(String codecName, String... codecAliases) DefaultCodecIdentifier(String codecName, Set<String> codecAliases) -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the aliases for this codec.Gets the unique name of the codec.inthashCode()booleanisEquivalent(CodecIdentifier other) Checks if this codec is equivalent to some other codectoString()
-
Constructor Details
-
DefaultCodecIdentifier
-
DefaultCodecIdentifier
-
DefaultCodecIdentifier
-
-
Method Details
-
getCodecName
Description copied from interface:CodecIdentifierGets the unique name of the codec.- Specified by:
getCodecNamein interfaceCodecIdentifier- Returns:
- the codec name
-
getCodecAliases
Description copied from interface:CodecIdentifierGets the aliases for this codec. Aliases are used in registering "encodeAs*" and "decode*" metamethods in org.grails.commons.DefaultGrailsCodecClass- Specified by:
getCodecAliasesin interfaceCodecIdentifier- Returns:
- the codec aliases
-
hashCode
public int hashCode() -
equals
-
toString
-
isEquivalent
Description copied from interface:CodecIdentifierChecks if this codec is equivalent to some other codec- Specified by:
isEquivalentin interfaceCodecIdentifier- Parameters:
other- the CodecIdentifier of the other codec- Returns:
- true, if is equivalent
-