Enum Class SyncState

java.lang.Object
java.lang.Enum<SyncState>
io.objectbox.sync.SyncState
All Implemented Interfaces:
Serializable, Comparable<SyncState>, Constable

public enum SyncState extends Enum<SyncState>
  • Enum Constant Details

    • UNKNOWN

      public static final SyncState UNKNOWN
    • CREATED

      public static final SyncState CREATED
    • STARTED

      public static final SyncState STARTED
    • CONNECTED

      public static final SyncState CONNECTED
    • LOGGED_IN

      public static final SyncState LOGGED_IN
    • DISCONNECTED

      public static final SyncState DISCONNECTED
    • STOPPED

      public static final SyncState STOPPED
    • DEAD

      public static final SyncState DEAD
  • Field Details

    • id

      public final int id
  • Method Details

    • values

      public static SyncState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SyncState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromId

      public static SyncState fromId(int id)