Package com.irurueta.commons
Interface EditDistance.ArrayWrapper<T>
-
- Type Parameters:
T
- generic data type.
- All Known Implementing Classes:
EditDistance.GenericArrayWrapper
,EditDistance.StringArrayWrapper
- Enclosing class:
- EditDistance
protected static interface EditDistance.ArrayWrapper<T>
Interface used as a wrapper for arrays of type T used to generalized efficient access to elements of an array of a generic data type T. String implementations are provided as well as implementations for generic objects of type T. If primitive data types arrays must be supported, then the necessary implementation will need to be added similarly to existent ones.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
equals(EditDistance.ArrayWrapper<T> other, int posX, int posY)
Compares this array in position x, with the other object at position y.int
length()
Obtains length of array.
-
-
-
Method Detail
-
length
int length()
Obtains length of array.- Returns:
- length of array.
-
equals
boolean equals(EditDistance.ArrayWrapper<T> other, int posX, int posY)
Compares this array in position x, with the other object at position y.- Parameters:
other
- the other array wrapper.posX
- position within this array that must be compared.posY
- position within the other array that must be compared.- Returns:
- true if elements in provided positions are equal, false otherwise.
-
-