Package org.spongepowered.api.statistic
Interface StatisticCategory.Typed<T>
-
- Type Parameters:
T- The type
- All Superinterfaces:
StatisticCategory
- Enclosing interface:
- StatisticCategory
public static interface StatisticCategory.Typed<T> extends StatisticCategory
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.spongepowered.api.statistic.StatisticCategory
StatisticCategory.Typed<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Statistic.TypeInstance<T>statistic(T value)Gets theStatistic.TypeInstancefor the givenvalue.Collection<Statistic.TypeInstance<T>>statistics()Gets all theStatistics that are listed within thisStatisticCategory.io.leangen.geantyref.TypeToken<T>type()Gets thevalue.
-
-
-
Method Detail
-
statistics
Collection<Statistic.TypeInstance<T>> statistics()
Description copied from interface:StatisticCategoryGets all theStatistics that are listed within thisStatisticCategory.- Specified by:
statisticsin interfaceStatisticCategory- Returns:
- The statistics
-
statistic
Statistic.TypeInstance<T> statistic(T value)
Gets theStatistic.TypeInstancefor the givenvalue.- Parameters:
value- The value- Returns:
- The instance
-
-