Class Period

  • All Implemented Interfaces:
    Time

    public class Period
    extends java.lang.Object
    implements Time
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String FROM  
      static java.lang.String TO  
    • Constructor Summary

      Constructors 
      Constructor Description
      Period​(java.time.LocalDateTime from, java.time.LocalDateTime to)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.time.LocalDateTime getFrom()  
      java.time.LocalDateTime getTo()  
      int hashCode()  
      • Methods inherited from class java.lang.Object

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

      • Period

        public Period​(java.time.LocalDateTime from,
                      java.time.LocalDateTime to)
    • Method Detail

      • getFrom

        public java.time.LocalDateTime getFrom()
      • getTo

        public java.time.LocalDateTime getTo()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object