Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.ensembl.util
Class LongList

    java.lang.Object
      org.ensembl.util.LongList

Direct Known Subclasses:
  IDList

public class LongList
extends java.lang.Object

Dynamic list of longs.

Author:
  Craig Melsopp

Field Summary
`protected java.util.List` | `list`
`protected long[]` | `result`
`protected int` | `size`

Constructor Summary
`LongList()`
`LongList(long[] ls)`

Method Summary
`void` | `add(long l)`
`void` | `add(long[] ls)`
`int` | `size()`
`long[]` | `toArray()`
`java.lang.String` | `toCommaSeparatedString()` Comma separated list of items in list.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### list

    protected java.util.List list

### size

    protected int size

### result

    protected long[] result

Constructor Detail

### LongList

    public LongList()

### LongList

    public LongList(long[] ls)

Method Detail

### add

    public void add(long l)

### toArray

    public long[] toArray()

### size

    public int size()

### toCommaSeparatedString

    public java.lang.String toCommaSeparatedString()

  Comma separated list of items in list.

  Returns:
    string containing all the items in this list, each is followed by a comma.

### add

    public void add(long[] ls)

  Parameters:
    `ls` - ids to add to the list.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD