Class Realm

    • Field Detail

      • OC1

        public static final Realm OC1
      • OC2

        public static final Realm OC2
      • OC3

        public static final Realm OC3
      • OC4

        public static final Realm OC4
      • OC8

        public static final Realm OC8
      • OC9

        public static final Realm OC9
      • OC10

        public static final Realm OC10
      • OC14

        public static final Realm OC14
      • OC20

        public static final Realm OC20
      • OC19

        public static final Realm OC19
      • OC24

        public static final Realm OC24
      • OC21

        public static final Realm OC21
      • OC26

        public static final Realm OC26
      • OC15

        public static final Realm OC15
      • OC29

        public static final Realm OC29
      • OC23

        public static final Realm OC23
      • OC35

        public static final Realm OC35
    • Method Detail

      • compareTo

        public int compareTo​(Realm other)
        Compares to realms lexicographically based on their realmId.
        Specified by:
        compareTo in interface Comparable<Realm>
        Parameters:
        other - The Realm to be compared.
        Returns:
        the value 0 if the realmId of the compared Realm is equal to the realmId of this Realm; a value less than 0 if the realmId of this Realm is lexicographically less than the realmId of the compared Realm; and a value greater than 0 if the realmId of this Realm is lexicographically greater than the realmId of the compared Realm.
      • values

        public static Realm[] values()
        All known Realms in this version of the SDK
        Returns:
        Known realms
      • valueOf

        public static Realm valueOf​(@Nonnull
                                    String name)
                             throws IllegalArgumentException
        Returns the Realm object matching the specified name.

        The name must match exactly. (Extraneous whitespace characters are not permitted.)

        Parameters:
        name - The name of the realm
        Returns:
        The Realm object matching the specified name, if available.
        Throws:
        IllegalArgumentException - if no realm exists with the specified name
      • register

        public static Realm register​(@Nonnull
                                     String realmId,
                                     @Nonnull
                                     String secondLevelDomain)
        Register a new Realm.

        Used to allow the SDK to be forward compatible with unreleased realms.

        Parameters:
        realmId - The realm id.
        secondLevelDomain - The second level domain of the realm.
        Returns:
        The registered Realm (or existing one if found).
      • register

        public static Realm register​(@Nonnull
                                     String realmId,
                                     @Nonnull
                                     String secondLevelDomain,
                                     boolean isAlloyRealm)
        Register a new Realm.

        Used to allow the SDK to be forward compatible with unreleased realms.

        Parameters:
        realmId - The realm id.
        secondLevelDomain - The second level domain of the realm.
        isAlloyRealm - ‘true’ if realm is from alloy configuration.
        Returns:
        The registered Realm (or existing one if found).
      • hashCode

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

        public String getRealmId()
      • getSecondLevelDomain

        public String getSecondLevelDomain()
      • clearAlloyRealms

        protected static void clearAlloyRealms()