public class Ref
Lightweight reference to an entity. Refs are used to reference entities from within systems and provide validation to ensure the entity still exists.
java.lang.Object > Ref
Field Summary
ref
final
Ref>
ref
Field ref.
Method Detail
getIndex
public
int
getIndex
()
Method getIndex.
setIndex
public
void
setIndex
(final int index)
Method setIndex.
- Parameters:
final intindex
invalidate
public
void
invalidate
()
Method invalidate.
validate
public
void
validate
()
Method validate.
isValid
public
boolean
isValid
()
Method isValid.
equals
public
boolean
equals
(@Nullable final Object o)
Method equals.
- Parameters:
@Nullable final Objecto
hashCode
public
int
hashCode
()
Method hashCode.
hashCode0
public
int
hashCode0
()
Method hashCode0.
toString
public
String
toString
()
Method toString.