Interface CompoundDecoder<From,To>

Type Parameters:
From - the encoded type
To - the decoded type
All Superinterfaces:
Decoder<From,To>

public interface CompoundDecoder<From,To> extends Decoder<From,To>

A compound decoder is used in a CompositeDecoder to decode particular types of objects.

Since:
1.0
Author:
Jeremy Kuhn
See Also:
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    <T extends To>
    boolean
    canDecode(Class<T> type)
    Determines whether the decoder can decode the type represented by the specified class.
    boolean
    Determines whether the decoder can decode the specified type.

    Methods inherited from interface io.inverno.mod.base.converter.Decoder Link icon

    decode, decode
  • Method Details Link icon

    • canDecode Link icon

      <T extends To> boolean canDecode(Class<T> type)

      Determines whether the decoder can decode the type represented by the specified class.

      Type Parameters:
      T - the type of the object to decode
      Parameters:
      type - the class of the object to decode
      Returns:
      true if the decoder can decode the type, false otherwise
    • canDecode Link icon

      boolean canDecode(Type type)

      Determines whether the decoder can decode the specified type.

      Parameters:
      type - the type of the object to decode
      Returns:
      true if the decoder can decode the type, false otherwise