public class DefaultDomain1D<E extends DefaultDomainElement1D> extends AbstractList<E> implements Domain1D<E>
Domain1D
interface.modCount
Constructor and Description |
---|
DefaultDomain1D(E[] inDomainElements)
Constructor for
DefaultDomain1D . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Compares the specified object with this domain element list for equality.
|
E |
findDomainElement(double value)
Returns the domain element of the specified sample value.
|
E |
get(int i)
Returns the element at the specified position in this list.
|
Range |
getApproximateDomainRange()
Returns the range of values in this
Domain1D . |
protected Class<?> |
getEquivalenceClass() |
E |
getMain()
Return what seems to be the main
DomainElement1D for this list. |
double[] |
getMinimums() |
String |
getName()
Returns the name of this object.
|
boolean |
hasGaps()
Tell us if there is a gap in this
Domain1D which means a range where no DomainElement1D is defined. |
int |
hashCode() |
int |
size()
Returns the number of elements in this list.
|
Object[] |
toArray()
Returns all elements in this
. |
add, add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toString
public DefaultDomain1D(E[] inDomainElements)
DefaultDomain1D
.inDomainElements
- DomainElement1D
objects that make up this list.public String getName()
Domain1D
getName
in interface Domain1D<E extends DefaultDomainElement1D>
public Range getApproximateDomainRange()
Domain1D
Domain1D
. This is the union of the range of values of every Domain1D
.getApproximateDomainRange
in interface Domain1D<E extends DefaultDomainElement1D>
public E findDomainElement(double value)
null
.findDomainElement
in interface Domain1D<E extends DefaultDomainElement1D>
value
- The value.null
.public int size()
size
in interface Collection<E extends DefaultDomainElement1D>
size
in interface List<E extends DefaultDomainElement1D>
size
in class AbstractCollection<E extends DefaultDomainElement1D>
public E get(int i)
get
in interface List<E extends DefaultDomainElement1D>
get
in class AbstractList<E extends DefaultDomainElement1D>
public Object[] toArray()
.toArray
in interface Collection<E extends DefaultDomainElement1D>
toArray
in interface List<E extends DefaultDomainElement1D>
toArray
in class AbstractCollection<E extends DefaultDomainElement1D>
public boolean equals(Object object)
DefaultDomain1D
class, then the test check for the equality of the single elements.equals
in interface Collection<E extends DefaultDomainElement1D>
equals
in interface List<E extends DefaultDomainElement1D>
equals
in class AbstractList<E extends DefaultDomainElement1D>
protected Class<?> getEquivalenceClass()
public boolean hasGaps()
Domain1D
Domain1D
which means a range where no DomainElement1D
is defined.hasGaps
in interface Domain1D<E extends DefaultDomainElement1D>
true
in case a gap exists, false
otherwise.public E getMain()
DomainElement1D
for this list.DomainElement1D
for this list.public double[] getMinimums()
public int hashCode()
hashCode
in interface Collection<E extends DefaultDomainElement1D>
hashCode
in interface List<E extends DefaultDomainElement1D>
hashCode
in class AbstractList<E extends DefaultDomainElement1D>
Copyright © 2006–2015 GeoSolutions. All rights reserved.