Class ValidFor


  • @Immutable
    public abstract class ValidFor
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ValidFor()  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean contains​(java.time.Instant instant)
      Check if an instant of time is contained within the validity range including the endpoints.
      static ValidFor from​(TimeRange proto)  
      abstract java.util.Optional<java.time.Instant> getEnd()  
      abstract java.time.Instant getStart()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ValidFor

        public ValidFor()
    • Method Detail

      • getStart

        public abstract java.time.Instant getStart()
      • getEnd

        public abstract java.util.Optional<java.time.Instant> getEnd()
      • contains

        public boolean contains​(java.time.Instant instant)
        Check if an instant of time is contained within the validity range including the endpoints.