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
Modifier and TypeClassDescriptionstatic class
MongoUnitValue.MongoUnitValueBuilder
class is a builder pattern class for theMongoUnitValue
class. -
Constructor Summary
ConstructorDescriptionDefault constructor.MongoUnitValue
(String bsonType, Object value, String comparatorValue) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
getValue()
int
hashCode()
void
setBsonType
(String bsonType) void
setComparatorValue
(String comparatorValue) void
toString()
-
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
MongoUnitValue
class.
-
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
-