Class BsonUtils


  • public class BsonUtils
    extends Object
    Utility class to deal BsonValues.
    • Method Detail

      • compareBsonValue

        public static int compareBsonValue​(org.bson.BsonValue o1,
                                           org.bson.BsonValue o2)
      • compareBsonDocument

        public static int compareBsonDocument​(org.bson.BsonDocument d1,
                                              org.bson.BsonDocument d2)
      • compareBsonArray

        public static int compareBsonArray​(org.bson.BsonArray a1,
                                           org.bson.BsonArray a2)
      • compareBsonBinary

        public static int compareBsonBinary​(org.bson.BsonBinary b1,
                                            org.bson.BsonBinary b2)
      • compareJavascriptWithScope

        public static int compareJavascriptWithScope​(org.bson.BsonJavaScriptWithScope c1,
                                                     org.bson.BsonJavaScriptWithScope c2)
      • isNull

        public static boolean isNull​(org.bson.BsonValue bsonValue)
      • isBsonNumber

        public static boolean isBsonNumber​(org.bson.BsonValue bsonValue)
      • isArray

        public static boolean isArray​(org.bson.BsonValue bsonValue)
      • isMinKey

        public static boolean isMinKey​(org.bson.BsonValue bsonValue)
      • isMaxKey

        public static boolean isMaxKey​(org.bson.BsonValue bsonValue)
      • toDecimal128

        public static org.bson.types.Decimal128 toDecimal128​(org.bson.BsonValue bsonValue)
      • toJavaString

        public static String toJavaString​(org.bson.BsonValue bsonValue)
      • toBsonDocument

        public static org.bson.BsonDocument toBsonDocument​(org.bson.BsonValue bsonValue)
      • typeOrder

        public static int typeOrder​(org.bson.BsonValue bsonValue)