Index
All Classes and Interfaces|All Packages
A
- append(T) - Method in class com.Roukan.datastructures.list.CircularLinkedList
-
Appends the specified element to the end of this circular list.
- append(T) - Method in class com.Roukan.datastructures.list.DoublyLinkedList
-
Appends the specified element to the end of this list.
- append(T) - Method in class com.Roukan.datastructures.list.LinkedList
-
Appends the specified element to the end of this list.
C
- CircularLinkedList<T> - Class in com.Roukan.datastructures.list
-
A circular doubly linked list implementation where the last node points back to the first node, creating a circular structure that allows continuous traversal in both directions.
- CircularLinkedList() - Constructor for class com.Roukan.datastructures.list.CircularLinkedList
-
Constructs an empty circular linked list.
- CircularNode<T> - Class in com.Roukan.datastructures.list
-
Represents a node in a circular linked list.
- CircularNode() - Constructor for class com.Roukan.datastructures.list.CircularNode
-
Constructs an empty circular node with null value and null references.
- CircularNode(T) - Constructor for class com.Roukan.datastructures.list.CircularNode
-
Constructs a new circular node with the specified value and null references.
- clear() - Method in class com.Roukan.datastructures.list.LinkedList
-
Removes all of the elements from this list.
- com.Roukan.datastructures.list - package com.Roukan.datastructures.list
- contains(T) - Method in class com.Roukan.datastructures.list.LinkedList
-
Returns true if this list contains the specified element.
D
- DoublyLinkedList<T> - Class in com.Roukan.datastructures.list
-
A doubly linked list implementation that provides bidirectional traversal and efficient operations at both ends of the list.
- DoublyLinkedList() - Constructor for class com.Roukan.datastructures.list.DoublyLinkedList
-
Constructs an empty doubly linked list.
- DoublyNode<T> - Class in com.Roukan.datastructures.list
-
Represents a node in a doubly linked list.
- DoublyNode() - Constructor for class com.Roukan.datastructures.list.DoublyNode
-
Constructs a new empty doubly node with null value and null references.
- DoublyNode(T) - Constructor for class com.Roukan.datastructures.list.DoublyNode
-
Constructs a new doubly node with the specified value and null references for both next and previous nodes.
- DoublyNode(T, DoublyNode<T>, DoublyNode<T>) - Constructor for class com.Roukan.datastructures.list.DoublyNode
-
Constructs a new doubly node with the specified value, next node, and previous node.
G
- get(int) - Method in class com.Roukan.datastructures.list.CircularLinkedList
-
Returns the node at the specified position in this circular list.
- get(int) - Method in class com.Roukan.datastructures.list.DoublyLinkedList
-
Returns the node at the specified position in this list.
- get(int) - Method in class com.Roukan.datastructures.list.LinkedList
-
Returns the node at the specified position in this list.
- getFirst() - Method in class com.Roukan.datastructures.list.LinkedList
-
Returns the first node in this list.
- getLast() - Method in class com.Roukan.datastructures.list.LinkedList
-
Returns the last node in this list.
- getNext() - Method in class com.Roukan.datastructures.list.CircularNode
-
Returns the next node in the circular sequence.
- getNextNode() - Method in class com.Roukan.datastructures.list.DoublyNode
-
Returns the next node in the sequence.
- getNextNode() - Method in class com.Roukan.datastructures.list.Node
-
Returns the next node in the sequence.
- getPrevious() - Method in class com.Roukan.datastructures.list.CircularNode
-
Returns the previous node in the circular sequence.
- getPreviousNode() - Method in class com.Roukan.datastructures.list.DoublyNode
-
Returns the previous node in the sequence.
- getValue() - Method in class com.Roukan.datastructures.list.CircularNode
-
Returns the value stored in this node.
- getValue() - Method in class com.Roukan.datastructures.list.DoublyNode
-
Returns the value stored in this node.
- getValue() - Method in class com.Roukan.datastructures.list.Node
-
Returns the value stored in this node.
I
- index(T) - Method in class com.Roukan.datastructures.list.DoublyLinkedList
-
Returns the index of the first occurrence of the specified element in this list.
- indexOf(T) - Method in class com.Roukan.datastructures.list.LinkedList
-
Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element.
- insert(int, T) - Method in class com.Roukan.datastructures.list.DoublyLinkedList
-
Inserts the specified element at the specified position in this list.
- insert(T, int) - Method in class com.Roukan.datastructures.list.LinkedList
-
Inserts the specified element at the specified position in this list.
- isEmpty() - Method in class com.Roukan.datastructures.list.DoublyLinkedList
-
Returns true if this list contains no elements.
- isEmpty() - Method in class com.Roukan.datastructures.list.LinkedList
-
Checks if the linked list is empty.
L
- lastIndexOf(T) - Method in class com.Roukan.datastructures.list.LinkedList
-
Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element.
- LinkedList<T> - Class in com.Roukan.datastructures.list
-
A singly linked list implementation that provides various operations for adding, removing, and accessing elements in a linear sequence.
- LinkedList() - Constructor for class com.Roukan.datastructures.list.LinkedList
-
Constructs an empty linked list.
N
- Node<T> - Class in com.Roukan.datastructures.list
-
Represents a node in a singly linked list.
- Node(T) - Constructor for class com.Roukan.datastructures.list.Node
-
Constructs a new node with the specified value and no next node.
- Node(T, Node<T>) - Constructor for class com.Roukan.datastructures.list.Node
-
Constructs a new node with the specified value and next node reference.
P
- prepend(T) - Method in class com.Roukan.datastructures.list.DoublyLinkedList
-
Inserts the specified element at the beginning of this list.
- prepend(T) - Method in class com.Roukan.datastructures.list.LinkedList
-
Inserts the specified element at the beginning of this list.
R
- remove(int) - Method in class com.Roukan.datastructures.list.CircularLinkedList
-
Removes the element at the specified position in this list.
- remove(int) - Method in class com.Roukan.datastructures.list.DoublyLinkedList
-
Removes the element at the specified position in this list.
- remove(int) - Method in class com.Roukan.datastructures.list.LinkedList
-
Removes the element at the specified position in this list.
- removeFirst() - Method in class com.Roukan.datastructures.list.LinkedList
-
Removes and returns the first element from this list.
- removeLast() - Method in class com.Roukan.datastructures.list.LinkedList
-
Removes and returns the last element from this list.
S
- setNext(CircularNode<T>) - Method in class com.Roukan.datastructures.list.CircularNode
-
Sets the reference to the next node in the circular sequence.
- setNextNode(DoublyNode<T>) - Method in class com.Roukan.datastructures.list.DoublyNode
-
Sets the reference to the next node in the sequence.
- setNextNode(Node<T>) - Method in class com.Roukan.datastructures.list.Node
-
Sets the reference to the next node in the sequence.
- setPrevious(CircularNode<T>) - Method in class com.Roukan.datastructures.list.CircularNode
-
Sets the reference to the previous node in the circular sequence.
- setPreviousNode(DoublyNode<T>) - Method in class com.Roukan.datastructures.list.DoublyNode
-
Sets the reference to the previous node in the sequence.
- setValue(T) - Method in class com.Roukan.datastructures.list.CircularNode
-
Sets a new value for this node.
- setValue(T) - Method in class com.Roukan.datastructures.list.DoublyNode
-
Sets a new value for this node.
- setValue(T) - Method in class com.Roukan.datastructures.list.Node
-
Sets a new value for this node.
- size() - Method in class com.Roukan.datastructures.list.DoublyLinkedList
-
Returns the number of elements in this list.
- size() - Method in class com.Roukan.datastructures.list.LinkedList
-
Returns the number of elements in this list.
T
- toString() - Method in class com.Roukan.datastructures.list.CircularLinkedList
-
Returns a string representation of this circular list.
- toString() - Method in class com.Roukan.datastructures.list.CircularNode
-
Returns a string representation of this node's value.
- toString() - Method in class com.Roukan.datastructures.list.DoublyLinkedList
-
Returns a string representation of this list.
- toString() - Method in class com.Roukan.datastructures.list.DoublyNode
-
Returns a string representation of this node's value.
- toString() - Method in class com.Roukan.datastructures.list.LinkedList
-
Returns a string representation of this list.
- toString() - Method in class com.Roukan.datastructures.list.Node
-
Returns a string representation of this node.
All Classes and Interfaces|All Packages