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.StepList
clone()
Returns a shallow copy of this list.boolean
containsPredicate()
boolean
equalsIgnoreIndex(XPathUtil.StepList propertyName)
Compares this StepList with another for equivalence regardless of the indexes of each Step.void
setIndex(int index, String xpath, String separator)
Find the first steps matching the xpath within this list, and set an index to it.boolean
startsWith(XPathUtil.StepList other)
XPathUtil.StepList
subList(int fromIndex, int toIndex)
String
toString()
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:CheckedArrayList
Returns a string representation of this list.- Overrides:
toString
in 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:
subList
in interfaceList<XPathUtil.Step>
- Overrides:
subList
in classArrayList<XPathUtil.Step>
-
clone
public XPathUtil.StepList clone()
Description copied from class:CheckedArrayList
Returns a shallow copy of this list.- Specified by:
clone
in interfaceCloneable
- Overrides:
clone
in 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:
true
if this step list has the same location paths thanpropertyName
ignoring the indexes in each step.false
otherwise.
-
-