Package org.geotools.data.complex.util
Class XPathUtil.StepList
- Object
-
- AbstractCollection<E>
-
- AbstractList<E>
-
- ArrayList<E>
-
- CheckedArrayList<XPathUtil.Step>
-
- StepList
-
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<XPathUtil.Step>,Collection<XPathUtil.Step>,List<XPathUtil.Step>,RandomAccess,Cloneable,CheckedCollection<XPathUtil.Step>
- Enclosing class:
- XPathUtil
public static class XPathUtil.StepList extends CheckedArrayList<XPathUtil.Step>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description StepList(XPathUtil.StepList steps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XPathUtil.StepListclone()Returns a shallow copy of this list.booleancontainsPredicate()booleanequalsIgnoreIndex(XPathUtil.StepList propertyName)Compares this StepList with another for equivalence regardless of the indexes of each Step.voidsetIndex(int index, String xpath, String separator)Find the first steps matching the xpath within this list, and set an index to it.booleanstartsWith(XPathUtil.StepList other)XPathUtil.StepListsubList(int fromIndex, int toIndex)StringtoString()Returns a string representation of this list.-
Methods inherited from class CheckedArrayList
add, add, addAll, addAll, checkWritePermission, clear, contains, ensureCapacity, ensureValidType, equals, get, getElementType, getLock, hashCode, indexOf, isEmpty, iterator, lastIndexOf, remove, remove, removeAll, retainAll, set, size, toArray, toArray, trimToSize
-
Methods inherited from class ArrayList
forEach, listIterator, listIterator, removeIf, removeRange, replaceAll, sort, spliterator
-
Methods inherited from class AbstractCollection
containsAll
-
Methods inherited from interface Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface List
containsAll
-
-
-
-
Constructor Detail
-
StepList
public StepList(XPathUtil.StepList steps)
-
-
Method Detail
-
toString
public String toString()
Description copied from class:CheckedArrayListReturns a string representation of this list.- Overrides:
toStringin classCheckedArrayList<XPathUtil.Step>
-
containsPredicate
public boolean containsPredicate()
-
startsWith
public boolean startsWith(XPathUtil.StepList other)
-
subList
public XPathUtil.StepList subList(int fromIndex, int toIndex)
- Specified by:
subListin interfaceList<XPathUtil.Step>- Overrides:
subListin classArrayList<XPathUtil.Step>
-
clone
public XPathUtil.StepList clone()
Description copied from class:CheckedArrayListReturns a shallow copy of this list.- Specified by:
clonein interfaceCloneable- Overrides:
clonein classCheckedArrayList<XPathUtil.Step>- Returns:
- A shallow copy of this list.
- See Also:
Object.clone()
-
equalsIgnoreIndex
public boolean equalsIgnoreIndex(XPathUtil.StepList propertyName)
Compares this StepList with another for equivalence regardless of the indexes of each Step.- Returns:
trueif this step list has the same location paths thanpropertyNameignoring the indexes in each step.falseotherwise.
-
-