CodecIdentifier (Grails 2.4.4)
Date: 2014-10-28

Package: org.codehaus.groovy.grails.support.encoding

## [Java] Interface CodecIdentifier

- Information about the codec that identifies it and tells it's aliases.

  Authors:
    Lari Hotari
  Since:
    2.3

- - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `java.util.Set<java.lang.String>` | `getCodecAliases()` Gets the aliases for this codec.
    `java.lang.String` | `getCodecName()` Gets the unique name of the codec.
    `boolean` | `isEquivalent(CodecIdentifier other)` Checks if this codec is equivalent to some other codec

- - ### Method Detail

    - #### public java.util.Set<java.lang.String> getCodecAliases()

      Gets the aliases for this codec. Aliases are used in registering "encodeAs*" and "decode*" metamethods in DefaultGrailsCodecClass

      Returns:
        the codec aliases

    - #### public java.lang.String getCodecName()

      Gets the unique name of the codec.

      Returns:
        the codec name

    - #### public boolean isEquivalent(CodecIdentifier other)

      Checks if this codec is equivalent to some other codec

      Parameters:
        `other` - the CodecIdentifier of the other codec
      Returns:
        true, if is equivalent