Class NullConverter
- java.lang.Object
-
- org.silbertb.proto.domainconverter.custom.NullConverter
-
- All Implemented Interfaces:
TypeConverter
public class NullConverter extends java.lang.Object implements TypeConverter
-
-
Constructor Summary
Constructors Constructor Description NullConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanshouldAssignToProto(java.lang.Object domainValue)java.lang.ObjecttoDomainValue(java.lang.Object protoValue)Convert instance from protobuf object type to domain object type.java.lang.ObjecttoProtobufValue(java.lang.Object domainValue)Convert instance from domain object type to protobuf object type.
-
-
-
Method Detail
-
toDomainValue
public java.lang.Object toDomainValue(java.lang.Object protoValue)
Description copied from interface:TypeConverterConvert instance from protobuf object type to domain object type.- Specified by:
toDomainValuein interfaceTypeConverter- Parameters:
protoValue- Instance for conversion.- Returns:
- converted data.
-
shouldAssignToProto
public boolean shouldAssignToProto(java.lang.Object domainValue)
- Specified by:
shouldAssignToProtoin interfaceTypeConverter
-
toProtobufValue
public java.lang.Object toProtobufValue(java.lang.Object domainValue)
Description copied from interface:TypeConverterConvert instance from domain object type to protobuf object type.- Specified by:
toProtobufValuein interfaceTypeConverter- Parameters:
domainValue- Instance for conversion.- Returns:
- converted data.
-
-