org.expasy.jpl.commons.collection
Class IntegerSequenceWithGap

java.lang.Object
  extended by 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

Method Summary
 void add(IntegerSequence interval)
           
static IntegerSequenceWithGap fromIntegers(int[] ints, int by)
          Build integer intervals
 IntegerSequence get(int i)
           
 int getLowerBound()
           
 int getNumOfInts()
           
 int getUpperBound()
           
static IntegerSequenceWithGap newInstance()
           
 int size()
           
 int[] toInts()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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.