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 longmodifiedTimeThe SurfaceObject's modified time.protected longuniqueIdThe 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 booleanequals(java.lang.Object o)longgetSizeInBytes()Returns the state key's size in bytes.inthashCode()
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getSizeInBytes
public long getSizeInBytes()
Returns the state key's size in bytes.- Specified by:
getSizeInBytesin interfaceCacheable- Returns:
- the state key's size in bytes.
-
-