Package com.scriptel.proscript
Class ErrorCorrectionSample
- java.lang.Object
-
- com.scriptel.proscript.ErrorCorrectionSample
-
- All Implemented Interfaces:
java.io.Serializable
public class ErrorCorrectionSample extends java.lang.Object implements java.io.SerializableThis class represents a sample in an error correction table.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ErrorCorrectionSample(int x, int y)Constructor, creates a new instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Checks to see if two samples are identical to each other.intgetX()Gets the horizontal sample value.intgetY()Gets the vertical sample value.inthashCode()Calculates a hash value for this instance.java.lang.StringtoString()This method converts this object into a human readable string.
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
Checks to see if two samples are identical to each other.- Overrides:
equalsin classjava.lang.Object- Parameters:
o- Error correction object to test against.- Returns:
- True if they're equal, false otherwise.
-
hashCode
public int hashCode()
Calculates a hash value for this instance.- Overrides:
hashCodein classjava.lang.Object- Returns:
- Hash value.
-
toString
public java.lang.String toString()
This method converts this object into a human readable string.- Overrides:
toStringin classjava.lang.Object- Returns:
- Human readable string.
-
getX
public int getX()
Gets the horizontal sample value.- Returns:
- Horizontal sample value.
-
getY
public int getY()
Gets the vertical sample value.- Returns:
- Vertical sample value.
-
-