Package org.mongojack.mock
Class MockObjectWithWriteReadOnlyFields
- java.lang.Object
-
- org.mongojack.mock.MockObjectWithWriteReadOnlyFields
-
public class MockObjectWithWriteReadOnlyFields extends Object
Used to test READ_ONLY (only for serialization) and WRITE_ONLY (only for deserialization) fields- Author:
- Volodymyr Masliy
-
-
Constructor Summary
Constructors Constructor Description MockObjectWithWriteReadOnlyFields()
MockObjectWithWriteReadOnlyFields(String _id, String someReadOnlyField, String someWriteOnlyField)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
get_id()
String
getSomeReadOnlyField()
String
getSomeWriteOnlyField()
int
hashCode()
void
set_id(String _id)
void
setSomeReadOnlyField(String someReadOnlyField)
void
setSomeWriteOnlyField(String someWriteOnlyField)
String
toString()
-
-
-
Method Detail
-
get_id
public String get_id()
-
set_id
public void set_id(String _id)
-
getSomeReadOnlyField
public String getSomeReadOnlyField()
-
setSomeReadOnlyField
public void setSomeReadOnlyField(String someReadOnlyField)
-
getSomeWriteOnlyField
public String getSomeWriteOnlyField()
-
setSomeWriteOnlyField
public void setSomeWriteOnlyField(String someWriteOnlyField)
-
-