Package provided.owlMaps.general
Interface IPath<E>
- Type Parameters:
E
- The type of element held in the list
- All Superinterfaces:
java.util.Collection<E>
,IPaths<E>
,java.lang.Iterable<E>
,java.util.List<E>
,java.io.Serializable
- All Known Subinterfaces:
IPathLatLng
- All Known Implementing Classes:
Path
public interface IPath<E> extends IPaths<E>, java.util.List<E>
A List<E> that is a Standard Visitor pattern visitor host
and in such, is also abstractly equivalent to IPaths.
This is the base case of IPaths.
Some parts of the OwlMaps system use IPath alone for
compatibility and extensibility with IPaths usage.
Note: There is an execute() method inherited from IPaths.
- Author:
- swong
-
Method Summary
Static Methods Modifier and Type Method Description static <T> IPath<T>
make(T... elements)
Convenience factory for constructing an IPath instance from a varargs of elements.Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.lang.Iterable
forEach
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
Method Details
-
make
Convenience factory for constructing an IPath instance from a varargs of elements. Note that the concrete implementation of IPath has the same constructors as ArrayList for use in other situations.- Type Parameters:
T
- The type of elements to fill the path with.- Parameters:
elements
- Vararg of the elements to fill the path- Returns:
- A new IPath instance
-