Ref

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

Ref

public public Ref (@Nonnull final Store store)

Method Ref.

Parameters:
@Nonnull final Store store

getStore

public Store getStore ()

Method getStore.

getIndex

public int getIndex ()

Method getIndex.

setIndex

public void setIndex (final int index)

Method setIndex.

Parameters:
final int index

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 Object o

hashCode

public int hashCode ()

Method hashCode.

hashCode0

public int hashCode0 ()

Method hashCode0.

toString

public String toString ()

Method toString.

See Also: