org.opensha.commons.data
Class Point2DToleranceSortedArrayList
java.lang.Object
org.opensha.commons.data.Point2DToleranceSortedArrayList
- All Implemented Interfaces:
- Iterable<Point2D>, Point2DToleranceSortedList
- Direct Known Subclasses:
- EmpiricalPoint2DToleranceSortedList
public class Point2DToleranceSortedArrayList
- extends Object
- implements Point2DToleranceSortedList
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Point2DToleranceSortedArrayList
public Point2DToleranceSortedArrayList(Point2DComparator comparator)
iterator
public Iterator<Point2D> iterator()
- Specified by:
iterator in interface Iterable<Point2D>
size
public int size()
- Specified by:
size in interface Point2DToleranceSortedList
getTolerance
public double getTolerance()
- Specified by:
getTolerance in interface Point2DToleranceSortedList
setTolerance
public void setTolerance(double newTolerance)
- Specified by:
setTolerance in interface Point2DToleranceSortedList
binarySearch
public int binarySearch(Point2D p)
- Specified by:
binarySearch in interface Point2DToleranceSortedList
add
public boolean add(Point2D e)
- Specified by:
add in interface Point2DToleranceSortedList
addAll
public boolean addAll(Collection<? extends Point2D> c)
- Specified by:
addAll in interface Point2DToleranceSortedList
remove
public boolean remove(Object o)
- Specified by:
remove in interface Point2DToleranceSortedList
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll in interface Point2DToleranceSortedList
getMinY
public double getMinY()
- Specified by:
getMinY in interface Point2DToleranceSortedList
getMaxY
public double getMaxY()
- Specified by:
getMaxY in interface Point2DToleranceSortedList
getMinX
public double getMinX()
- Specified by:
getMinX in interface Point2DToleranceSortedList
getMaxX
public double getMaxX()
- Specified by:
getMaxX in interface Point2DToleranceSortedList
get
public Point2D get(int index)
- Specified by:
get in interface Point2DToleranceSortedList
remove
public boolean remove(int index)
- Specified by:
remove in interface Point2DToleranceSortedList
get
public Point2D get(double x)
- Specified by:
get in interface Point2DToleranceSortedList
indexOf
public int indexOf(Point2D findPoint)
- Specified by:
indexOf in interface Point2DToleranceSortedList
getComparator
public Point2DComparator getComparator()
- Specified by:
getComparator in interface Point2DToleranceSortedList
clear
public void clear()
- Specified by:
clear in interface Point2DToleranceSortedList
isEmpty
public boolean isEmpty()