Skip to content
Snippets Groups Projects
Select Git revision
  • 29f14d89023e1459d40b5d77ab477cae83476dd5
  • main default protected
  • v0.10
  • rework-examples
  • otel-demo-dynatrace-example
  • support-empty-query-response
  • java-operator-sdk
  • rework-state-handling
  • quarkus-36
  • bump-kotlinlogging-to-5.0.2
  • use-internal-registry protected
  • v0.9 protected
  • kafka-nodeport-config-windows
  • v0.8 protected
  • test-k3d protected
  • simpleuc4 protected
  • reduce-code-duplication
  • test-coverage
  • code-cleanup
  • cleanup-commit-interval protected
  • delete-action-for-other-namespace
  • v0.10.0 protected
  • v0.9.0 protected
  • v0.8.6 protected
  • v0.8.5 protected
  • v0.8.4 protected
  • v0.8.3 protected
  • v0.8.2 protected
  • v0.8.1 protected
  • v0.8.0 protected
  • v0.7.0 protected
  • v0.5.2 protected
  • v0.6.4 protected
  • v0.6.3 protected
  • v0.6.2 protected
  • v0.6.1 protected
  • v0.6.0 protected
  • v0.5.1 protected
  • v0.5.0 protected
  • v0.4.0 protected
  • v0.3.0 protected
41 results

HourOfWeekKey.java

Blame
  • HourOfWeekKey.java 874 B
    package spesb.uc4.streamprocessing;
    
    import java.time.DayOfWeek;
    
    /**
     * Composed key of a {@link DayOfWeek}, an hour of the day and a sensor id.
     */
    public class HourOfWeekKey {
    
      private final DayOfWeek dayOfWeek;
      private final int hourOfDay;
      private final String sensorId;
    
      /**
       * Create a new {@link HourOfDayKey} using its components.
       */
      public HourOfWeekKey(final DayOfWeek dayOfWeek, final int hourOfDay, final String sensorId) {
        this.dayOfWeek = dayOfWeek;
        this.hourOfDay = hourOfDay;
        this.sensorId = sensorId;
      }
    
      public DayOfWeek getDayOfWeek() {
        return this.dayOfWeek;
      }
    
      public int getHourOfDay() {
        return this.hourOfDay;
      }
    
      public String getSensorId() {
        return this.sensorId;
      }
    
      @Override
      public String toString() {
        return this.sensorId + ";" + this.dayOfWeek.toString() + ";" + this.hourOfDay;
      }
    
    }