Class Ref<ECS_TYPE>

java.lang.Object
com.hypixel.hytale.component.Ref<ECS_TYPE>

public class Ref<ECS_TYPE> extends Object
  • Field Details

    • EMPTY_ARRAY

      public static final Ref<?>[] EMPTY_ARRAY
    • store

      @Nonnull private final Store<ECS_TYPE> store
    • index

      private volatile int index
    • hashCode

      private transient volatile int hashCode
    • invalidatedBy

      private volatile Throwable invalidatedBy
  • Constructor Details

  • Method Details

    • getStore

      @Nonnull public Store<ECS_TYPE> getStore()
    • getIndex

      public int getIndex()
    • setIndex

      void setIndex(int index)
    • invalidate

      void invalidate()
    • invalidate

      void invalidate(@Nullable Throwable invalidatedBy)
    • validate

      public void validate()
    • isValid

      public boolean isValid()
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • equals

      public boolean equals(@Nullable Ref<ECS_TYPE> o)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • hashCode0

      public int hashCode0()
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object