Interface Stat

All Known Subinterfaces:
IdGeneratorStat
All Known Implementing Classes:
CosIdGeneratorStat, DatePrefixConverterStat, GroupedPrefixConverterStat, PrefixConverterStat, RadixConverterStat, SegmentIdStat, SimpleIdGeneratorStat, SimpleStat, SnowflakeFriendlyIdConverterStat, SnowflakeIdStat, SuffixConverterStat, ToStringConverterStat

public interface Stat
Statistical information interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    default @Nullable Stat
    Gets the wrapped actual stat.
    Gets the kind/type of this stat.
    static Stat
    simple(String kind)
    Creates a simple stat with the specified kind.
    static Stat
    simple(String kind, @Nullable Stat actual)
    Creates a simple stat with the specified kind and actual.
  • Method Details

    • getKind

      String getKind()
      Gets the kind/type of this stat.
      Returns:
      the kind
    • getActual

      default @Nullable Stat getActual()
      Gets the wrapped actual stat.
      Returns:
      the actual stat or null
    • simple

      static Stat simple(String kind, @Nullable Stat actual)
      Creates a simple stat with the specified kind and actual.
      Parameters:
      kind - the kind
      actual - the actual stat
      Returns:
      the stat
    • simple

      static Stat simple(String kind)
      Creates a simple stat with the specified kind.
      Parameters:
      kind - the kind
      Returns:
      the stat