123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355 |
- package com.luticate.utils;
-
- import com.luticate.utils.dbo.LuDbo;
-
- import java.io.Serializable;
- import java.util.AbstractMap;
- import java.util.Arrays;
- import java.util.HashMap;
- import java.util.List;
-
- /**
- * Created by robin on 10/20/16.
- */
-
- public class TestDbo extends LuDbo implements Serializable {
- protected byte _byte;
- protected char _char;
- protected short _short;
- protected int _int;
- protected long _long;
- protected float _float;
- protected double _double;
- protected boolean _boolean;
-
- protected Byte _byteObject;
- protected Character _charObject;
- protected Short _shortObject;
- protected Integer _intObject;
- protected Long _longObject;
- protected Float _floatObject;
- protected Double _doubleObject;
- protected Boolean _booleanObject;
-
- protected String _string;
-
- protected Test2Dbo _test2Dbo;
- protected Test2Dbo _test2Dbo2;
-
- protected List<Integer> _integers;
- protected int[] _ints;
-
- protected List<Test2Dbo> _test2Dbos;
- protected Test2Dbo[] _dbos;
-
- protected HashMap<String, Integer> _hashMap;
- protected AbstractMap<String, Test2Dbo> _hashMap2;
-
- protected String _aNullString;
- protected Class _object = TestDbo.class;
-
- public byte getByte() {
- return _byte;
- }
-
- public void setByte(byte aByte) {
- _byte = aByte;
- }
-
- public char getChar() {
- return _char;
- }
-
- public void setChar(char aChar) {
- _char = aChar;
- }
-
- public short getShort() {
- return _short;
- }
-
- public void setShort(short aShort) {
- _short = aShort;
- }
-
- public int getInt() {
- return _int;
- }
-
- public void setInt(int anInt) {
- _int = anInt;
- }
-
- public long getLong() {
- return _long;
- }
-
- public void setLong(long aLong) {
- _long = aLong;
- }
-
- public float getFloat() {
- return _float;
- }
-
- public void setFloat(float aFloat) {
- _float = aFloat;
- }
-
- public double getDouble() {
- return _double;
- }
-
- public void setDouble(double aDouble) {
- _double = aDouble;
- }
-
- public boolean isBoolean() {
- return _boolean;
- }
-
- public void setBoolean(boolean aBoolean) {
- _boolean = aBoolean;
- }
-
- public Byte getByteObject() {
- return _byteObject;
- }
-
- public void setByteObject(Byte byteObject) {
- _byteObject = byteObject;
- }
-
- public Character getCharObject() {
- return _charObject;
- }
-
- public void setCharObject(Character charObject) {
- _charObject = charObject;
- }
-
- public Short getShortObject() {
- return _shortObject;
- }
-
- public void setShortObject(Short shortObject) {
- _shortObject = shortObject;
- }
-
- public Integer getIntObject() {
- return _intObject;
- }
-
- public void setIntObject(Integer intObject) {
- _intObject = intObject;
- }
-
- public Long getLongObject() {
- return _longObject;
- }
-
- public void setLongObject(Long longObject) {
- _longObject = longObject;
- }
-
- public Float getFloatObject() {
- return _floatObject;
- }
-
- public void setFloatObject(Float floatObject) {
- _floatObject = floatObject;
- }
-
- public Double getDoubleObject() {
- return _doubleObject;
- }
-
- public void setDoubleObject(Double doubleObject) {
- _doubleObject = doubleObject;
- }
-
- public Boolean getBooleanObject() {
- return _booleanObject;
- }
-
- public void setBooleanObject(Boolean booleanObject) {
- _booleanObject = booleanObject;
- }
-
- public String getString() {
- return _string;
- }
-
- public void setString(String string) {
- _string = string;
- }
-
- public Test2Dbo getTest2Dbo() {
- return _test2Dbo;
- }
-
- public void setTest2Dbo(Test2Dbo test2Dbo) {
- _test2Dbo = test2Dbo;
- }
-
- public Test2Dbo getTest2Dbo2() {
- return _test2Dbo2;
- }
-
- public void setTest2Dbo2(Test2Dbo test2Dbo2) {
- _test2Dbo2 = test2Dbo2;
- }
-
- public List<Integer> getIntegers() {
- return _integers;
- }
-
- public void setIntegers(List<Integer> integers) {
- _integers = integers;
- }
-
- public int[] getInts() {
- return _ints;
- }
-
- public void setInts(int[] ints) {
- _ints = ints;
- }
-
- public List<Test2Dbo> getTest2Dbos() {
- return _test2Dbos;
- }
-
- public void setTest2Dbos(List<Test2Dbo> test2Dbos) {
- _test2Dbos = test2Dbos;
- }
-
- public Test2Dbo[] getDbos() {
- return _dbos;
- }
-
- public void setDbos(Test2Dbo[] dbos) {
- _dbos = dbos;
- }
-
- public HashMap<String, Integer> getHashMap() {
- return _hashMap;
- }
-
- public void setHashMap(HashMap<String, Integer> hashMap) {
- _hashMap = hashMap;
- }
-
- public AbstractMap<String, Test2Dbo> getHashMap2() {
- return _hashMap2;
- }
-
- public void setHashMap2(AbstractMap<String, Test2Dbo> hashMap2) {
- _hashMap2 = hashMap2;
- }
-
- public String getaNullString() {
- return _aNullString;
- }
-
- public void setaNullString(String aNullString) {
- _aNullString = aNullString;
- }
-
- public Class getObject() {
- return _object;
- }
-
- public void setObject(Class object) {
- _object = object;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
-
- TestDbo testDbo = (TestDbo) o;
-
- if (_byte != testDbo._byte) return false;
- if (_char != testDbo._char) return false;
- if (_short != testDbo._short) return false;
- if (_int != testDbo._int) return false;
- if (_long != testDbo._long) return false;
- if (Float.compare(testDbo._float, _float) != 0) return false;
- if (Double.compare(testDbo._double, _double) != 0) return false;
- if (_boolean != testDbo._boolean) return false;
- if (_byteObject != null ? !_byteObject.equals(testDbo._byteObject) : testDbo._byteObject != null)
- return false;
- if (_charObject != null ? !_charObject.equals(testDbo._charObject) : testDbo._charObject != null)
- return false;
- if (_shortObject != null ? !_shortObject.equals(testDbo._shortObject) : testDbo._shortObject != null)
- return false;
- if (_intObject != null ? !_intObject.equals(testDbo._intObject) : testDbo._intObject != null)
- return false;
- if (_longObject != null ? !_longObject.equals(testDbo._longObject) : testDbo._longObject != null)
- return false;
- if (_floatObject != null ? !_floatObject.equals(testDbo._floatObject) : testDbo._floatObject != null)
- return false;
- if (_doubleObject != null ? !_doubleObject.equals(testDbo._doubleObject) : testDbo._doubleObject != null)
- return false;
- if (_booleanObject != null ? !_booleanObject.equals(testDbo._booleanObject) : testDbo._booleanObject != null)
- return false;
- if (_string != null ? !_string.equals(testDbo._string) : testDbo._string != null)
- return false;
- if (_test2Dbo != null ? !_test2Dbo.equals(testDbo._test2Dbo) : testDbo._test2Dbo != null)
- return false;
- if (_test2Dbo2 != null ? !_test2Dbo2.equals(testDbo._test2Dbo2) : testDbo._test2Dbo2 != null)
- return false;
- if (_integers != null ? !_integers.equals(testDbo._integers) : testDbo._integers != null)
- return false;
- if (!Arrays.equals(_ints, testDbo._ints)) return false;
- if (_test2Dbos != null ? !_test2Dbos.equals(testDbo._test2Dbos) : testDbo._test2Dbos != null)
- return false;
- // Probably incorrect - comparing Object[] arrays with Arrays.equals
- if (!Arrays.equals(_dbos, testDbo._dbos)) return false;
- if (_hashMap != null ? !_hashMap.equals(testDbo._hashMap) : testDbo._hashMap != null)
- return false;
- if (_hashMap2 != null ? !_hashMap2.equals(testDbo._hashMap2) : testDbo._hashMap2 != null)
- return false;
- if (_aNullString != null ? !_aNullString.equals(testDbo._aNullString) : testDbo._aNullString != null)
- return false;
- return _object != null ? _object.equals(testDbo._object) : testDbo._object == null;
-
- }
-
- @Override
- public int hashCode() {
- int result;
- long temp;
- result = (int) _byte;
- result = 31 * result + (int) _char;
- result = 31 * result + (int) _short;
- result = 31 * result + _int;
- result = 31 * result + (int) (_long ^ (_long >>> 32));
- result = 31 * result + (_float != +0.0f ? Float.floatToIntBits(_float) : 0);
- temp = Double.doubleToLongBits(_double);
- result = 31 * result + (int) (temp ^ (temp >>> 32));
- result = 31 * result + (_boolean ? 1 : 0);
- result = 31 * result + (_byteObject != null ? _byteObject.hashCode() : 0);
- result = 31 * result + (_charObject != null ? _charObject.hashCode() : 0);
- result = 31 * result + (_shortObject != null ? _shortObject.hashCode() : 0);
- result = 31 * result + (_intObject != null ? _intObject.hashCode() : 0);
- result = 31 * result + (_longObject != null ? _longObject.hashCode() : 0);
- result = 31 * result + (_floatObject != null ? _floatObject.hashCode() : 0);
- result = 31 * result + (_doubleObject != null ? _doubleObject.hashCode() : 0);
- result = 31 * result + (_booleanObject != null ? _booleanObject.hashCode() : 0);
- result = 31 * result + (_string != null ? _string.hashCode() : 0);
- result = 31 * result + (_test2Dbo != null ? _test2Dbo.hashCode() : 0);
- result = 31 * result + (_test2Dbo2 != null ? _test2Dbo2.hashCode() : 0);
- result = 31 * result + (_integers != null ? _integers.hashCode() : 0);
- result = 31 * result + Arrays.hashCode(_ints);
- result = 31 * result + (_test2Dbos != null ? _test2Dbos.hashCode() : 0);
- result = 31 * result + Arrays.hashCode(_dbos);
- result = 31 * result + (_hashMap != null ? _hashMap.hashCode() : 0);
- result = 31 * result + (_hashMap2 != null ? _hashMap2.hashCode() : 0);
- result = 31 * result + (_aNullString != null ? _aNullString.hashCode() : 0);
- result = 31 * result + (_object != null ? _object.hashCode() : 0);
- return result;
- }
- }
|