FileDocCategorySizeDatePackage
XYZKey.javaAPI DocExample2023Sun Oct 25 18:13:36 GMT 1998None

XYZKey

public class XYZKey extends Object implements Key

Fields Summary
int
rotValue
Constructors Summary
XYZKey(byte[] b)

		rotValue = b[0];
		if (b[3] == 1)
		    rotValue = -rotValue;
	
XYZKey()

	
Methods Summary
public booleanequals(java.lang.Object o)

		if (!(o instanceof XYZKey))
			return false;
		XYZKey k = (XYZKey) o;
		return k.rotValue == rotValue;
	
public java.lang.StringgetAlgorithm()

		return "XYZ";
	
public byte[]getEncoded()

		byte b[] = new byte[4];
		if (rotValue < 0)
		    b[3] = 1;
		else b[3] = 0;
		b[2] = b[1] = 0;
		b[0] = (byte) Math.abs(rotValue);
		return b;
	
public java.lang.StringgetFormat()

		return "XYZ Special Format";
	
public java.lang.StringtoString()

		return "" + getClass() + ": " + rotValue;