Class Entity

java.lang.Object
cern.nxcals.api.domain.Entity
All Implemented Interfaces:
Identifiable

public class Entity extends Object implements Identifiable
Copyright (c) 2016 European Organisation for Nuclear Research (CERN), All Rights Reserved.
  • Method Details

    • getFirstEntityHistory

      public EntityHistory getFirstEntityHistory()
    • toBuilder

      public Entity.Builder toBuilder()
    • builder

      public static Entity.Builder builder()
    • getId

      public long getId()
      Specified by:
      getId in interface Identifiable
    • getEntityKeyValues

      @NonNull public @NonNull Map<String,Object> getEntityKeyValues()
    • getSystemSpec

      @NonNull public @NonNull SystemSpec getSystemSpec()
    • getPartition

      @NonNull public @NonNull Partition getPartition()
    • getEntityHistory

      public SortedSet<EntityHistory> getEntityHistory()
    • getLockedUntilStamp

      public Instant getLockedUntilStamp()
    • getRecVersion

      public long getRecVersion()
    • getKafkaPartition

      public Integer getKafkaPartition()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object