public class EntityAndAttribute<T>
extends java.lang.Object
implements com.google.common.base.Supplier<T>
Constructor and Description |
---|
EntityAndAttribute(Entity entity,
AttributeSensor<T> attribute) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
T |
get()
|
AttributeSensor<T> |
getAttribute() |
Entity |
getEntity() |
T |
getValue() |
int |
hashCode() |
void |
setValue(T val) |
static <T> EntityAndAttribute<T> |
supplier(Entity entity,
AttributeSensor<T> attribute) |
java.lang.String |
toString() |
public EntityAndAttribute(Entity entity, AttributeSensor<T> attribute)
public static <T> EntityAndAttribute<T> supplier(Entity entity, AttributeSensor<T> attribute)
public Entity getEntity()
public AttributeSensor<T> getAttribute()
public T getValue()
public void setValue(T val)
public T get()
get
in interface com.google.common.base.Supplier<T>
getValue()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object