Package gov.nasa.worldwind.render
Class AbstractSurfaceObject.SurfaceObjectStateKey
- java.lang.Object
-
- gov.nasa.worldwind.render.AbstractSurfaceObject.SurfaceObjectStateKey
-
- All Implemented Interfaces:
Cacheable
- Direct Known Subclasses:
AbstractSurfaceShape.SurfaceShapeStateKey
- Enclosing class:
- AbstractSurfaceObject
protected static class AbstractSurfaceObject.SurfaceObjectStateKey extends java.lang.Object implements Cacheable
Represents a surface object's current state. StateKey uniquely identifies a surface object's current state as follows:- The StateKey class distinguishes the key from other object types.
- The object's unique ID distinguishes one surface object instances from another.
- The object's modified time distinguishes an object's internal state from any of its previous states.
-
-
Field Summary
Fields Modifier and Type Field Description protected long
modifiedTime
The SurfaceObject's modified time.protected long
uniqueId
The SurfaceObject's unique ID.
-
Constructor Summary
Constructors Constructor Description SurfaceObjectStateKey(long uniqueId, long modifiedTime)
Constructs a new SurfaceObjectStateKey with the specified unique ID and modified time.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
long
getSizeInBytes()
Returns the state key's size in bytes.int
hashCode()
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getSizeInBytes
public long getSizeInBytes()
Returns the state key's size in bytes.- Specified by:
getSizeInBytes
in interfaceCacheable
- Returns:
- the state key's size in bytes.
-
-