org.jnetpcap.nio
Class LinkSequence<T>

java.lang.Object
  extended by org.jnetpcap.nio.LinkSequence<T>
Type Parameters:
T - the generic type
All Implemented Interfaces:
java.lang.Iterable<T>

public class LinkSequence<T>
extends java.lang.Object
implements java.lang.Iterable<T>

The Class LinkSequence.

Author:
markbe

Constructor Summary
LinkSequence()
          Instantiates a new link sequence.
LinkSequence(java.lang.String name)
          Instantiates a new link sequence.
 
Method Summary
 void add(Link<T> l)
          Adds the.
 T get(int index)
          Gets the.
 boolean isEmpty()
          Checks if is empty.
 java.util.Iterator<T> iterator()
          Iterator.
 void remove(Link<T> l)
          Removes the.
 int size()
          Size.
 java.lang.String toString()
          To string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LinkSequence

public LinkSequence()
Instantiates a new link sequence.


LinkSequence

public LinkSequence(java.lang.String name)
Instantiates a new link sequence.

Parameters:
name - the name
Method Detail

add

public void add(Link<T> l)
Adds the.

Parameters:
l - the l

isEmpty

public boolean isEmpty()
Checks if is empty.

Returns:
true, if is empty

remove

public void remove(Link<T> l)
Removes the.

Parameters:
l - the l

size

public int size()
Size.

Returns:
the int

get

public T get(int index)
Gets the.

Parameters:
index - the index
Returns:
the t

toString

public java.lang.String toString()
To string.

Overrides:
toString in class java.lang.Object
Returns:
the string
See Also:
Object.toString()

iterator

public java.util.Iterator<T> iterator()
Iterator.

Specified by:
iterator in interface java.lang.Iterable<T>
Returns:
the iterator
See Also:
Iterable.iterator()