|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractCollection<E>
AbstractList<E>
DefaultDomain1D<E>
public class DefaultDomain1D<E extends DefaultDomainElement1D>
Convenience implementation of the Domain1D
interface.
Field Summary |
---|
Fields inherited from class AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
DefaultDomain1D(E[] inDomainElements)
Constructor for DefaultDomain1D . |
Method Summary | |
---|---|
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. |
NumberRange<? extends Number> |
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()
|
InternationalString |
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 . |
Methods inherited from class AbstractList |
---|
add, add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
Methods inherited from class AbstractCollection |
---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toString |
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface List |
---|
add, add, addAll, addAll, clear, contains, containsAll, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray |
Constructor Detail |
---|
public DefaultDomain1D(E[] inDomainElements)
DefaultDomain1D
.
inDomainElements
- DomainElement1D
objects that make up this list.Method Detail |
---|
public InternationalString getName()
Domain1D
getName
in interface Domain1D<E extends DefaultDomainElement1D>
public NumberRange<? extends Number> 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>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |