All Packages Class Hierarchy This Package Previous Next Index
Class tadt.standard.Granularity
java.lang.Object
|
+----tadt.standard.Granularity
- public class Granularity
- extends Object
The Granularity class is currently a dummy class.
-
Granularity(String)
- Construct a Granularity.
-
cast(Anchorable)
- Cast to a different granularity.
-
cast(Unanchorable)
- Cast to a different granularity.
-
equals(Granularity)
-
Test for equality, needed only for supporting Hashtables, use
equalTo for comparing Instants directly.
-
hashCode()
-
Generate the hash code value, needed for supporting Hashtables.
-
image()
-
Build a nice string image of a Granularity, for debugging mostly
-
scale(Anchorable)
- Scale to a different granularity.
-
scale(Unanchorable)
- Scale to a different granularity.
Granularity
public Granularity(String name)
- Construct a Granularity.
image
public String image()
- Build a nice string image of a Granularity, for debugging mostly
- Returns:
- String image of Granularity
hashCode
public int hashCode()
- Generate the hash code value, needed for supporting Hashtables.
- Returns:
- int
- Overrides:
- hashCode in class Object
equals
public boolean equals(Granularity other)
- Test for equality, needed only for supporting Hashtables, use
equalTo for comparing Instants directly.
- Parameters:
- beta - - Instant to compare
- Returns:
- true or false
scale
public Unanchorable scale(Unanchorable a)
- Scale to a different granularity. Not implemented.
- Returns:
- currently just returns a
cast
public Unanchorable cast(Unanchorable a)
- Cast to a different granularity. Not implemented.
- Returns:
- currently just returns a
scale
public Anchorable scale(Anchorable a)
- Scale to a different granularity. Not implemented.
- Returns:
- currently just returns a
cast
public Anchorable cast(Anchorable a)
- Cast to a different granularity. Not implemented.
- Returns:
- currently just returns a
All Packages Class Hierarchy This Package Previous Next Index