java.lang.Object
java.util.AbstractCollection
org.jdaemon.era.AbstractCube
org.jdaemon.era.java.AbstractJavaCube
- All Implemented Interfaces:
- java.util.Collection, org.jdaemon.era.Cube, java.lang.Iterable
- Direct Known Subclasses:
- AbstractIndexedJavaCube, ListJavaCube
- public abstract class AbstractJavaCube
- extends org.jdaemon.era.AbstractCube
AbstractJavaCube
JavaCubes delegate their getAttribute() and getComparator() methods to their descriptor
object (which will be a JavaCubeDescriptor rather than a simple CubeDescriptor).
This is because the data structures supporting these methods will be invariant across all
cubes having the same descriptor.
| Nested classes inherited from class org.jdaemon.era.AbstractCube |
|
| Methods inherited from class java.util.AbstractCollection |
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from interface java.util.Collection |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, toArray, toArray |
AbstractJavaCube
public AbstractJavaCube()
getAttribute
public java.lang.Object getAttribute(java.lang.String attribute,
java.lang.Object datum)
- Description copied from class:
org.jdaemon.era.AbstractCube
- Get the value of an individual attribute of an object contained by this cube
getComparator
public java.util.Comparator getComparator(java.lang.String attribute)
- Description copied from class:
org.jdaemon.era.AbstractCube
- Get a comparator object which orders an attribute of this cube
The default implementation returns a default comparator which assumes the attribute
is of a type that implements Comparable.
getDescriptor
public abstract org.jdaemon.era.CubeDescriptor getDescriptor()
- Description copied from class:
org.jdaemon.era.AbstractCube
- Get metadata describing this cube
iterator
public abstract java.util.Iterator iterator()
- Description copied from class:
org.jdaemon.era.AbstractCube
- Get an interator over all data items contained by this cube