public class ReadOnlyCoordinates extends Object implements Collection<Coordinate>
Constructor and Description |
---|
ReadOnlyCoordinates(Coordinate[] coordinates) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Coordinate e) |
boolean |
addAll(Collection<? extends Coordinate> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
isEmpty() |
Iterator<Coordinate> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode
public int size()
size
in interface Collection<Coordinate>
public boolean isEmpty()
isEmpty
in interface Collection<Coordinate>
public boolean contains(Object o)
contains
in interface Collection<Coordinate>
public Iterator<Coordinate> iterator()
iterator
in interface Iterable<Coordinate>
iterator
in interface Collection<Coordinate>
public Object[] toArray()
toArray
in interface Collection<Coordinate>
public <T> T[] toArray(T[] a)
toArray
in interface Collection<Coordinate>
public boolean add(Coordinate e)
add
in interface Collection<Coordinate>
public boolean remove(Object o)
remove
in interface Collection<Coordinate>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<Coordinate>
public boolean addAll(Collection<? extends Coordinate> c)
addAll
in interface Collection<Coordinate>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<Coordinate>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<Coordinate>
public void clear()
clear
in interface Collection<Coordinate>