Enum Class BsonType

java.lang.Object
java.lang.Enum<BsonType>
de.bwaldvogel.mongo.backend.BsonType
All Implemented Interfaces:
Serializable, Comparable<BsonType>, Constable

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

    • DOUBLE

      public static final BsonType DOUBLE
    • STRING

      public static final BsonType STRING
    • OBJECT

      public static final BsonType OBJECT
    • ARRAY

      public static final BsonType ARRAY
    • BIN_DATA

      public static final BsonType BIN_DATA
    • OBJECT_ID

      public static final BsonType OBJECT_ID
    • BOOL

      public static final BsonType BOOL
    • DATE

      public static final BsonType DATE
    • NULL

      public static final BsonType NULL
    • REGEX

      public static final BsonType REGEX
    • INT

      public static final BsonType INT
    • TIMESTAMP

      public static final BsonType TIMESTAMP
    • LONG

      public static final BsonType LONG
    • DECIMAL128

      public static final BsonType DECIMAL128
    • MIN_KEY

      public static final BsonType MIN_KEY
    • MAX_KEY

      public static final BsonType MAX_KEY
  • Method Details

    • values

      public static BsonType[] 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 BsonType 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
    • forString

      public static BsonType forString(String value)
    • forNumber

      public static BsonType forNumber(Number value)
    • matches

      public boolean matches(Object value)
    • getNumber

      public int getNumber()
    • getAlias

      public String getAlias()