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)DefaultLocatedData(T data, Location... locations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)TgetData()List<Location>getLocations()inthashCode()StringtoString()
-
-
-
Method Detail
-
getData
public T getData()
- Specified by:
getDatain interfaceLocatedData<T>- Returns:
- The data.
-
getLocations
public List<Location> getLocations()
- Specified by:
getLocationsin interfaceLocatedData<T>- Returns:
- The data locations.
-
-