Class OpeningHours

  • java.lang.Object
    • com.here.sdk.search.OpeningHours

  • public final class OpeningHours
    extends java.lang.Object

    Represents opening hours information.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.util.List<PlaceCategory> categories
      The list of categories related to opening hours information.
      boolean isOpen
      Boolean flag informing if the place is open or closed at the time when the search request was initiated.
      java.util.List<ScheduleDetails> scheduleDetailsList
      The list of schedule details.
      java.util.List<java.lang.String> text
      The list of opening hours presented as localized text.
    • Constructor Summary

      Constructors 
      Constructor Description
      OpeningHours​(java.util.List<java.lang.String> text, boolean isOpen, java.util.List<ScheduleDetails> scheduleDetailsList, java.util.List<PlaceCategory> categories)
      Creates a new instance.
    • Method Summary

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

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

      • text

        @NonNull
        public java.util.List<java.lang.String> text

        The list of opening hours presented as localized text.

      • isOpen

        public boolean isOpen

        Boolean flag informing if the place is open or closed at the time when the search request was initiated. For offline search, this is calculated using device's time, so it may give incorrect value if device and place are located in different time zones.

      • scheduleDetailsList

        @NonNull
        public java.util.List<ScheduleDetails> scheduleDetailsList

        The list of schedule details.

      • categories

        @NonNull
        public java.util.List<PlaceCategory> categories

        The list of categories related to opening hours information. This data is not available in offline search.

    • Constructor Detail

      • OpeningHours

        public OpeningHours​(@NonNull
                            java.util.List<java.lang.String> text,
                            boolean isOpen,
                            @NonNull
                            java.util.List<ScheduleDetails> scheduleDetailsList,
                            @NonNull
                            java.util.List<PlaceCategory> categories)

        Creates a new instance.

        Parameters:
        text -

        The list of opening hours presented as localized text.

        isOpen -

        Boolean flag informing if the place is open or closed at the time when the search request was initiated. For offline search, this is calculated using device's time, so it may give incorrect value if device and place are located in different time zones.

        scheduleDetailsList -

        The list of schedule details.

        categories -

        The list of categories related to opening hours information. This data is not available in offline search.

    • Method Detail

      • equals

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

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