public class Entity extends Object
Modifier and Type | Method and Description |
---|---|
Entity |
add(Entity entity)
Creates a new entity object which is the sum of this object and the
supplied object.
|
static Entity |
createFromDataValue(int dataValue)
Creates an entity object from the supplied data value.
|
static Entity |
createFromIntValue(int intValue)
Creates an entity object from the supplied int value.
|
int |
getDataValue() |
int |
getIntValue() |
Entity |
multiply(Entity entity)
Creates a new entity object which is the product of this object and the
supplied object.
|
Entity |
subtract(Entity entity)
Creates a new entity object which is the difference of this object and
the supplied object.
|
public static final Entity ZERO
public static Entity createFromIntValue(int intValue)
intValue
- The value the created object should hold.public static Entity createFromDataValue(int dataValue)
dataValue
- The value the created object should hold.public Entity add(Entity entity)
entity
- The entity to add to this entity.public Entity subtract(Entity entity)
entity
- The entity to subtract from this entity.public Entity multiply(Entity entity)
entity
- The entity to multiply with this entity.public int getDataValue()
public int getIntValue()
Copyright © 2014. All Rights Reserved.