Package org.meeuw.json
Class Path
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<PathEntry>
-
- org.meeuw.json.Path
-
public class Path extends AbstractList<PathEntry>
- Since:
- 0.4
- Author:
- Michiel Meeuwissen
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int i, PathEntry e)voidaddLast(ArrayEntry inc)PathEntryget(int index)Pathparent()PathEntrypeekLast()PathEntrypollLast()PathEntryremove(int i)PathEntryset(int i, PathEntry e)intsize()StringtoString()-
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
-
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein interfaceCollection<PathEntry>- Specified by:
sizein interfaceList<PathEntry>- Specified by:
sizein classAbstractCollection<PathEntry>
-
get
public PathEntry get(int index)
-
add
public void add(int i, PathEntry e)
-
remove
public PathEntry remove(int i)
-
parent
public Path parent()
-
toString
public String toString()
- Overrides:
toStringin classAbstractCollection<PathEntry>
-
peekLast
public PathEntry peekLast()
-
pollLast
public PathEntry pollLast()
-
addLast
public void addLast(ArrayEntry inc)
-
-