Class SimpleObjectEqualityRawResult<T extends java.io.Serializable>
- java.lang.Object
-
- uk.ac.warwick.dcs.sherlock.api.model.postprocessing.AbstractModelTaskRawResult
-
- uk.ac.warwick.dcs.sherlock.module.model.base.postprocessing.SimpleObjectEqualityRawResult<T>
-
- All Implemented Interfaces:
java.io.Serializable
public class SimpleObjectEqualityRawResult<T extends java.io.Serializable> extends AbstractModelTaskRawResult
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleObjectEqualityRawResult(ISourceFile file1, ISourceFile file2, int numObjectsFile1, int numObjectsFile2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ISourceFile
getFile1()
int
getFile1NumObjects()
ISourceFile
getFile2()
int
getFile2NumObjects()
PairedTuple<java.lang.Integer,java.lang.Integer,java.lang.Integer,java.lang.Integer>
getLocation(int index)
java.util.List<PairedTuple<java.lang.Integer,java.lang.Integer,java.lang.Integer,java.lang.Integer>>
getLocations()
T
getObject(int index)
java.util.List<T>
getObjects()
int
getSize()
boolean
isEmpty()
Tests if the rawResult set should be discarded, as it contains no results datavoid
put(T object, int file1Loc, int file2Loc)
void
put(T object, int file1BlockStart, int file1BlockEnd, int file2BlockStart, int file2BlockEnd)
boolean
testType(AbstractModelTaskRawResult baseline)
Check that this object is of the same exact type as the baseline, including check any generic types are equaljava.lang.String
toString()
-
-
-
Constructor Detail
-
SimpleObjectEqualityRawResult
public SimpleObjectEqualityRawResult(ISourceFile file1, ISourceFile file2, int numObjectsFile1, int numObjectsFile2)
-
-
Method Detail
-
getFile1
public ISourceFile getFile1()
-
getFile1NumObjects
public int getFile1NumObjects()
-
getFile2
public ISourceFile getFile2()
-
getFile2NumObjects
public int getFile2NumObjects()
-
getLocation
public PairedTuple<java.lang.Integer,java.lang.Integer,java.lang.Integer,java.lang.Integer> getLocation(int index)
-
getLocations
public java.util.List<PairedTuple<java.lang.Integer,java.lang.Integer,java.lang.Integer,java.lang.Integer>> getLocations()
-
getObject
public T getObject(int index)
-
getObjects
public java.util.List<T> getObjects()
-
getSize
public int getSize()
-
isEmpty
public boolean isEmpty()
Description copied from class:AbstractModelTaskRawResult
Tests if the rawResult set should be discarded, as it contains no results data- Specified by:
isEmpty
in classAbstractModelTaskRawResult
- Returns:
- is empty of data
-
put
public void put(T object, int file1Loc, int file2Loc)
-
put
public void put(T object, int file1BlockStart, int file1BlockEnd, int file2BlockStart, int file2BlockEnd)
-
testType
public boolean testType(AbstractModelTaskRawResult baseline)
Description copied from class:AbstractModelTaskRawResult
Check that this object is of the same exact type as the baseline, including check any generic types are equalTODO: suggested implementation here.....
- Specified by:
testType
in classAbstractModelTaskRawResult
- Parameters:
baseline
- the baseline object, in the set, current instance must be of the same exact type as this- Returns:
- is same type?
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-