Class RawValues

java.lang.Object
net.time4j.format.RawValues
All Implemented Interfaces:
Consumer<ChronoDisplay>, Supplier<ChronoDisplay>

public class RawValues extends Object implements Consumer<ChronoDisplay>, Supplier<ChronoDisplay>

Stores any kind of raw values as ChronoDisplay.

Note: This class is mutable.

Since:
3.0
Author:
Meno Hochschild
  • Constructor Details

    • RawValues

      public RawValues()

      Initially this instance has no defined raw values.

  • Method Details

    • accept

      public void accept(ChronoDisplay rawValues)

      Consumes given chronological raw values.

      Specified by:
      accept in interface Consumer<ChronoDisplay>
      Parameters:
      rawValues - raw chronological values
      Since:
      3.0
    • get

      public ChronoDisplay get()

      Yields the chronological raw values.

      Specified by:
      get in interface Supplier<ChronoDisplay>
      Returns:
      raw chronological values, never null
      Since:
      3.0