Package org.terracotta.statistics
Class StatisticBuilder.AbstractStatisticBuilder<T extends StatisticBuilder.AbstractStatisticBuilder<T>>
- java.lang.Object
-
- org.terracotta.statistics.StatisticBuilder.AbstractStatisticBuilder<T>
-
- Type Parameters:
T- the generic type
- Direct Known Subclasses:
StatisticBuilder.OperationStatisticBuilder
- Enclosing class:
- StatisticBuilder
static class StatisticBuilder.AbstractStatisticBuilder<T extends StatisticBuilder.AbstractStatisticBuilder<T>> extends java.lang.ObjectThe Class AbstractStatisticBuilder.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.ObjectcontextThe context.protected java.lang.StringnameThe name.protected java.util.Map<java.lang.String,java.lang.Object>propertiesThe properties.protected java.util.Set<java.lang.String>tagsThe tags.
-
Constructor Summary
Constructors Constructor Description AbstractStatisticBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tnamed(java.lang.String name)Named.Tof(java.lang.Object of)Of.Tproperty(java.lang.String key, java.lang.Object value)Tag.Ttag(java.lang.String... tags)Tag.
-
-
-
Method Detail
-
of
public T of(java.lang.Object of)
Of.- Parameters:
of- the of- Returns:
- the builder
-
named
public T named(java.lang.String name)
Named.- Parameters:
name- the name- Returns:
- the builder
-
tag
public T tag(java.lang.String... tags)
Tag.- Parameters:
tags- the tags- Returns:
- the builder
-
property
public T property(java.lang.String key, java.lang.Object value)
Tag.- Parameters:
key- the property keyvalue- the property value- Returns:
- the builder
-
-