Class SortedPathList<T extends PathNode>
- java.lang.Object
-
- java.util.AbstractCollection<T>
-
- org.dreambot.api.methods.walking.pathfinding.impl.dijkstra.SortedPathList<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>
,java.util.Collection<T>
public class SortedPathList<T extends PathNode> extends java.util.AbstractCollection<T>
Created with IntelliJ IDEA.- Since:
- : 3/31/2015 Time : 5:50 PM
-
-
Constructor Summary
Constructors Constructor Description SortedPathList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(T o)
Adds object to list, then sorts list entirely.void
clear()
Clear the list of all the items.boolean
contains(java.lang.Object o)
T
first()
Gets the first indexed value in the list.java.util.Iterator<T>
iterator()
boolean
remove(java.lang.Object o)
int
size()
Get the number of elements in the list-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
first
public T first()
Gets the first indexed value in the list.- Returns:
- the first value in the list.
-
iterator
public java.util.Iterator<T> iterator()
-
clear
public void clear()
Clear the list of all the items.
-
add
public boolean add(T o)
Adds object to list, then sorts list entirely.
-
remove
public boolean remove(java.lang.Object o)
-
size
public int size()
Get the number of elements in the list
-
-