Code example for BigInteger

Methods: equals

0
 
	boolean equalAddress(BigInteger oAddress) {
		if (oAddress == null && getAddress() == null) {
			return true; 
		} 
		if (oAddress != null && oAddress.equals(getAddress())) {
			return true; 
		} 
		return false; 
	} 
 
	public static boolean equalString(String f1, String f2) {
		if (f1 != null && f1.length() > 0 && f2 != null && f2.length() > 0) {
			return f1.equals(f2);
		} else if ((f1 == null || f1.length() == 0) && (f2 == null || f2.length() == 0)) {
			return true; 
		} 
		return false;		 
	} 
 
	public boolean equals(ICDILocator locator) {