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.TypeInstance
for the givenvalue
.Collection<Statistic.TypeInstance<T>>
statistics()
Gets all theStatistic
s 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:StatisticCategory
Gets all theStatistic
s that are listed within thisStatisticCategory
.- Specified by:
statistics
in interfaceStatisticCategory
- Returns:
- The statistics
-
statistic
Statistic.TypeInstance<T> statistic(T value)
Gets theStatistic.TypeInstance
for the givenvalue
.- Parameters:
value
- The value- Returns:
- The instance
-
-