org.schemarepo.api.converter
Class IntegerConverter

java.lang.Object
  extended by org.schemarepo.api.converter.IntegerConverter
All Implemented Interfaces:
Converter<Integer>

public class IntegerConverter
extends Object
implements Converter<Integer>

To convert back and forth with Integer. As a converter for IDs, this is probably overkill for most use cases, since it allows billions of schemas per subject. There may be some highly generic and dynamic system architectures that would warrant such high cardinality, but for most intents and purposes, one should probably think twice about using this kind of ID.


Constructor Summary
IntegerConverter()
           
 
Method Summary
 Integer fromString(String literal)
           
 String toString(Integer strongType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerConverter

public IntegerConverter()
Method Detail

fromString

public Integer fromString(String literal)
Specified by:
fromString in interface Converter<Integer>

toString

public String toString(Integer strongType)
Specified by:
toString in interface Converter<Integer>


Copyright © 2015. All rights reserved.