@Internal public class IdentityConverter<I> extends Object implements DataStructureConverter<I,I>
| Constructor and Description |
|---|
IdentityConverter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isIdentityConversion()
Returns whether this conversion is a no-op.
|
I |
toExternal(I internal)
Converts to external data structure.
|
I |
toInternal(I external)
Converts to internal data structure.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitopen, toExternalOrNull, toInternalOrNullpublic I toInternal(I external)
DataStructureConverterNote: Parameter must not be null. Output must not be null.
toInternal in interface DataStructureConverter<I,I>public I toExternal(I internal)
DataStructureConverterNote: Parameter must not be null. Output must not be null.
toExternal in interface DataStructureConverter<I,I>public boolean isIdentityConversion()
DataStructureConverterAn identity conversion means that the type is already an internal data structure.
isIdentityConversion in interface DataStructureConverter<I,I>Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.