Package org.apache.mina.util.byteaccess
Class ByteArrayList.Node
- java.lang.Object
-
- org.apache.mina.util.byteaccess.ByteArrayList.Node
-
- Enclosing class:
- ByteArrayList
public class ByteArrayList.Node extends java.lang.ObjectA node within the linked list.From Commons Collections 3.1, all access to the
valueproperty is via the methods on this class.
-
-
Field Summary
Fields Modifier and Type Field Description private ByteArraybaThe ByteArray contained within this nodeprivate ByteArrayList.NodenextA pointer to the node after this nodeprivate ByteArrayList.NodepreviousA pointer to the node before this nodeprivate booleanremoved
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteArraygetByteArray()ByteArrayList.NodegetNextNode()Gets the next node.ByteArrayList.NodegetPreviousNode()Gets the previous node.booleanhasNextNode()booleanhasPreviousNode()booleanisRemoved()
-
-
-
Field Detail
-
previous
private ByteArrayList.Node previous
A pointer to the node before this node
-
next
private ByteArrayList.Node next
A pointer to the node after this node
-
ba
private ByteArray ba
The ByteArray contained within this node
-
removed
private boolean removed
-
-
Constructor Detail
-
Node
private Node()
Constructs a new header node.
-
Node
private Node(ByteArray ba)
Constructs a new node with a value.
-
-
Method Detail
-
getPreviousNode
public ByteArrayList.Node getPreviousNode()
Gets the previous node.- Returns:
- the previous node
-
getNextNode
public ByteArrayList.Node getNextNode()
Gets the next node.- Returns:
- the next node
-
hasPreviousNode
public boolean hasPreviousNode()
-
hasNextNode
public boolean hasNextNode()
-
getByteArray
public ByteArray getByteArray()
-
isRemoved
public boolean isRemoved()
-
-