org.schemarepo.api.converter
Class ByteConverter
java.lang.Object
org.schemarepo.api.converter.ByteConverter
- All Implemented Interfaces:
- Converter<Byte>
public class ByteConverter
- extends Object
- implements Converter<Byte>
To convert back and forth with Byte.
For most people this can be a reasonable choice for IDs. Most use cases
should require less than 256 schemas per subject. However, if one wants to be
extra paranoid about future extensibility, the ShortConverter should provide
as much mileage as one might need.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteConverter
public ByteConverter()
fromString
public Byte fromString(String literal)
- Specified by:
fromString in interface Converter<Byte>
toString
public String toString(Byte strongType)
- Specified by:
toString in interface Converter<Byte>
Copyright © 2015. All rights reserved.