Package cdc.issues.locations
Class DefaultLocatedData<T>
- java.lang.Object
-
- cdc.issues.locations.DefaultLocatedData<T>
-
- Type Parameters:
T- The data type.
- All Implemented Interfaces:
LocatedData<T>
public class DefaultLocatedData<T> extends Object implements LocatedData<T>
Default implementation ofLocatedData.- Author:
- Damien Carbonne
-
-
Constructor Summary
Constructors Constructor Description DefaultLocatedData(T data, Location location)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)TgetData()LocationgetLocation()inthashCode()StringtoString()
-
-
-
Method Detail
-
getData
public T getData()
- Specified by:
getDatain interfaceLocatedData<T>- Returns:
- The data.
-
getLocation
public Location getLocation()
- Specified by:
getLocationin interfaceLocatedData<T>- Returns:
- The data location.
-
-