de.jtem.java2dx
Class Point2DList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
java.util.LinkedList<Point2DDouble>
de.jtem.java2dx.Point2DList
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<Point2DDouble>, Collection<Point2DDouble>, Deque<Point2DDouble>, List<Point2DDouble>, Queue<Point2DDouble>
- Direct Known Subclasses:
- Polygon2D
public class Point2DList
- extends LinkedList<Point2DDouble>
- See Also:
- Serialized Form
Methods inherited from class java.util.LinkedList |
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, toArray, toArray |
Point2DList
public Point2DList()
Point2DList
public Point2DList(Collection<Point2DDouble> p)
- Makes copies of all the points.
- Parameters:
points
-
Point2DList
public Point2DList(double[][] d)
assign
public void assign(Collection<Point2DDouble> p)
assign
public void assign(double[][] d)
equals
public boolean equals(Object o)
- Instance of this class are equal only if they are identical.
- Specified by:
equals
in interface Collection<Point2DDouble>
- Specified by:
equals
in interface List<Point2DDouble>
- Overrides:
equals
in class AbstractList<Point2DDouble>
hashCode
public int hashCode()
- Instances of this class return the same hashCode throughout
their lifetime. Hence they are usable as keys in HashMaps.
- Specified by:
hashCode
in interface Collection<Point2DDouble>
- Specified by:
hashCode
in interface List<Point2DDouble>
- Overrides:
hashCode
in class AbstractList<Point2DDouble>
toDoubleArray
public double[][] toDoubleArray()
jTEM