@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, wait
open, toExternalOrNull, toInternalOrNull
public I toInternal(I external)
DataStructureConverter
Note: Parameter must not be null. Output must not be null.
toInternal
in interface DataStructureConverter<I,I>
public I toExternal(I internal)
DataStructureConverter
Note: Parameter must not be null. Output must not be null.
toExternal
in interface DataStructureConverter<I,I>
public boolean isIdentityConversion()
DataStructureConverter
An 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.