- java.lang.Object
-
- io.github.mmm.entity.id.IdMarshaller
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <E> Id<E>
readId(StructuredReader reader, IdMapper mapper, Class<E> type)
static void
writeId(StructuredWriter writer, Id<?> id)
-
-
-
Method Detail
-
writeId
public static void writeId(StructuredWriter writer, Id<?> id)
- Parameters:
writer
- theStructuredWriter
.id
- theId
to write to theStructuredWriter
.
-
readId
public static <E> Id<E> readId(StructuredReader reader, IdMapper mapper, Class<E> type)
- Type Parameters:
E
- type of the identified entity.- Parameters:
reader
- theStructuredReader
.mapper
- theIdMapper
.type
- theentity type
.- Returns:
- the unmarshalled
Id
.
-
-