Class IndexedString
- java.lang.Object
-
- uk.ac.warwick.dcs.sherlock.api.util.Tuple<java.lang.Integer,java.lang.String>
-
- uk.ac.warwick.dcs.sherlock.api.util.IndexedString
-
- All Implemented Interfaces:
java.io.Serializable
,ITuple<java.lang.Integer,java.lang.String>
public class IndexedString extends Tuple<java.lang.Integer,java.lang.String>
A Tuple of Integer and String, is typically used to associate a string with a file line number within the Sherlock API and Engine- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IndexedString(int index, java.lang.String string)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IndexedString
of(int index, java.lang.String string)
Static constructor method
-
-
-
Method Detail
-
of
public static IndexedString of(int index, java.lang.String string)
Static constructor method- Parameters:
index
- the index valuestring
- the string- Returns:
- new instance of IndexedString
-
-