org.garret.jsql
Class L2Elem

java.lang.Object
  extended byorg.garret.jsql.L2Elem
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ListIterator

public class L2Elem
extends java.lang.Object
implements java.io.Serializable

Element of double linked list

See Also:
Serialized Form

Constructor Summary
L2Elem()
          Default constructor
 
Method Summary
 java.lang.Object getNext()
          Get next element
 java.lang.Object getPrevious()
          Get previous element
 boolean isEmpty()
          Check if list is empty
 void link(L2Elem after)
          Link element after specified element in the list
 void unlink()
          Unlink element from the list
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

L2Elem

public L2Elem()
Default constructor

Method Detail

getNext

public final java.lang.Object getNext()
Get next element


getPrevious

public final java.lang.Object getPrevious()
Get previous element


unlink

public final void unlink()
Unlink element from the list


link

public final void link(L2Elem after)
Link element after specified element in the list

Parameters:
after - element after which this element should be linked into the list

isEmpty

public final boolean isEmpty()
Check if list is empty

Returns:
false if there are no elements in the list except this one