org.expasy.jpl.commons.collection
Class IntegerSequenceWithGap
java.lang.Object
org.expasy.jpl.commons.collection.IntegerSequenceWithGap
public final class IntegerSequenceWithGap
- extends Object
This object is IntegerSequenceWithGap with gaps defining a sequence
of integers with missing integers at some intervals.
- Version:
- 1.0
- Author:
- nikitin
newInstance
public static IntegerSequenceWithGap newInstance()
fromIntegers
public static IntegerSequenceWithGap fromIntegers(int[] ints,
int by)
- Build integer intervals
- Parameters:
ints - the integers to place in intervals.by - the increment of the sequence.
- Returns:
- an instance of
JPLIntervalSequence
add
public void add(IntegerSequence interval)
getNumOfInts
public final int getNumOfInts()
get
public final IntegerSequence get(int i)
size
public final int size()
getLowerBound
public final int getLowerBound()
getUpperBound
public final int getUpperBound()
toInts
public int[] toInts()
toString
public String toString()
- Overrides:
toString in class Object
Copyright (c) 2012 Swiss Institute of Bioinformatics. All rights reserved.