Class AbstractSource.Data<D,​S>

  • Type Parameters:
    D - an type of loaded data
    S - a type of data stamp
    Enclosing class:
    AbstractSource<T,​S>

    public static final class AbstractSource.Data<D,​S>
    extends Object
    Data loaded at appropriate time.
    • Constructor Detail

      • Data

        public Data()
        Initialize data object for specified timestamp and covered data.
      • Data

        public Data​(Optional<D> data,
                    Optional<S> stamp)
        Initialize data object for specified timestamp and covered data.
        Parameters:
        data - covered object node. Can be null in case source does not exist.
        stamp - data stamp
    • Method Detail

      • data

        public Optional<D> data()
        Returns loaded data.
        Returns:
        loaded data.
      • stamp

        public Optional<S> stamp()
        Returns stamp of data.
        Returns:
        stamp of data.