jklustor-overlap-0.0.2-20140619012940 (ChemAxon)


com.chemaxon.overlap.io
Class IdProjectors.IdProjectorBuilder

Object
  extended by com.chemaxon.overlap.io.IdProjectors.IdProjectorBuilder
Enclosing class:
IdProjectors

public static class IdProjectors.IdProjectorBuilder
extends Object

Plain ID projector builder.

Note that sequential reporting of IDs are expected.


Constructor Summary
IdProjectors.IdProjectorBuilder()
          Construct new builder.
IdProjectors.IdProjectorBuilder(int skip)
          Construct new builder.
 
Method Summary
 void addError(int masterId)
          Report master ID for which no client ID.
 void addOk(int masterId, int clientId)
          Report new master-client mapping.
 IdProjector build()
          Build serializable, immutable projector.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdProjectors.IdProjectorBuilder

public IdProjectors.IdProjectorBuilder()
Construct new builder.


IdProjectors.IdProjectorBuilder

public IdProjectors.IdProjectorBuilder(int skip)
Construct new builder.

Parameters:
skip - Skipped in master IDs
Method Detail

addOk

public void addOk(int masterId,
                  int clientId)
Report new master-client mapping.

Parameters:
masterId - Master ID
clientId - Client ID

addError

public void addError(int masterId)
Report master ID for which no client ID.

Parameters:
masterId - Master ID skipped

build

public IdProjector build()
Build serializable, immutable projector.

Returns:
ID projector to build.

jklustor-overlap-0.0.2-20140619012940 (ChemAxon)