net.conquiris.api.index
Class Checkpoints

java.lang.Object
  extended by net.derquinse.common.base.NotInstantiable
      extended by net.conquiris.api.index.Checkpoints

public final class Checkpoints
extends net.derquinse.common.base.NotInstantiable

Checkpoints support class.

Author:
Andres Rodriguez

Method Summary
static int ofInt(String checkpoint, int fallback)
          Parses a checkpoint as an int.
static long ofLong(String checkpoint, long fallback)
          Parses a checkpoint as a long.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

ofLong

public static long ofLong(@Nullable
                          String checkpoint,
                          long fallback)
Parses a checkpoint as a long.

Parameters:
checkpoint - Checkpoint to parse.
fallback - Fallback value.
Returns:
The checkpoint.

ofInt

public static int ofInt(@Nullable
                        String checkpoint,
                        int fallback)
Parses a checkpoint as an int.

Parameters:
checkpoint - Checkpoint to parse.
fallback - Fallback value.
Returns:
The checkpoint.


Copyright © 2012 Derquinse Projects.. All Rights Reserved.