Package org.mongounit.model
Class MongoUnitValue
java.lang.Object
org.mongounit.model.MongoUnitValue
MongoUnitValue class represents the fields and values represented by the special format
of the MongoUnit value.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classMongoUnitValue.MongoUnitValueBuilderclass is a builder pattern class for theMongoUnitValueclass. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.MongoUnitValue(String bsonType, Object value, String comparatorValue) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleangetValue()inthashCode()voidsetBsonType(String bsonType) voidsetComparatorValue(String comparatorValue) voidtoString()
-
Constructor Details
-
MongoUnitValue
public MongoUnitValue()Default constructor. -
MongoUnitValue
Constructor.- Parameters:
bsonType- BsonType of the MongoUnit value.value- Actual value.comparatorValue- Comparator value of the MongoUnit value.
-
-
Method Details
-
builder
- Returns:
- Instance of the builder pattern version of the
MongoUnitValueclass.
-
getBsonType
- Returns:
- BsonType of the MongoUnit value.
-
getValue
- Returns:
- Actual value.
-
getComparatorValue
- Returns:
- Comparator value of the MongoUnit value.
-
setBsonType
- Parameters:
bsonType- BsonType of the MongoUnit value.
-
setValue
- Parameters:
value- Actual value.
-
setComparatorValue
- Parameters:
comparatorValue- Comparator value of the MongoUnit value.
-
equals
-
canEqual
- Parameters:
other- Object to test possible equality with.- Returns:
- true if 'other' can equal this object based on 'other''s type, false otherwise.
-
hashCode
public int hashCode() -
toString
-