blob: 45c3ef4cadbea9bdc92944d3aa1e052ffc0e39d6 [file] [log] [blame]
/* Copyright 2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.mytest;
import java.math.BigInteger;
public class MySubClass
extends MyClass
{
private BigInteger bigInt;
private boolean issetBigInt;
public BigInteger getBigInt()
{
return bigInt;
}
public void setBigInt(BigInteger bigInt)
{
this.bigInt = bigInt;
setIsSetBigInt(bigInt != null);
}
public boolean isSetBigInt()
{
return issetBigInt;
}
public void setIsSetBigInt(boolean val)
{
issetBigInt = val;
}
// public String[][][][] quadStringArray = newQuadStringArray();
public String[][][][] quadStringArray = null;
public static String[][][][] newQuadStringArray()
{
String[][][][] qs = new String[2][3][4][5];
qs[1][1][1][1] = "1-1-1-1";
qs[1][1][2][3] = "1-1-2-3";
return qs;
}
public boolean equals(Object o)
{
if (this == o) return true;
if (!(o instanceof MySubClass)) return false;
if (!super.equals(o)) return false;
final MySubClass mySubClass = (MySubClass)o;
if (issetBigInt != mySubClass.issetBigInt) return false;
if (bigInt != null ? !bigInt.equals(mySubClass.bigInt) :
mySubClass.bigInt != null)
return false;
return true;
}
public int hashCode()
{
int result = super.hashCode();
result = 29 * result + (bigInt != null ? bigInt.hashCode() : 0);
result = 29 * result + (issetBigInt ? 1 : 0);
return result;
}
public String toString()
{
return "com.mytest.MySubClass{" +
"super=" + super.toString() +
"bigInt=" + bigInt +
", issetBigInt=" + issetBigInt +
"}";
}
}