- Type Parameters:
From
- the decoded typeTo
- the encoded type
- All Superinterfaces:
Encoder<From,
To>
A compound encoder is used in a CompositeEncoder
to encode particular
types of objects.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Method Summary
-
Method Details
-
canEncode
Determines whether the encoder can encode the type represented by the specified class.
- Type Parameters:
T
- the type of the object to encode- Parameters:
type
- the class of the object to encode- Returns:
- true if the encoder can encode the type, false otherwise
-
canEncode
Determines whether the encoder can encode the specified type.
- Parameters:
type
- the type of the object to decode- Returns:
- true if the encoder can encode the type, false otherwise
-