All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.zeroone3010.yahueapi.ButtonImpl Maven / Gradle / Ivy

There is a newer version: 3.0.0-rc
Show newest version
package io.github.zeroone3010.yahueapi;

import java.util.Collections;
import java.util.List;

final class ButtonImpl implements Button {
  static final ButtonImpl UNKNOWN = new ButtonImpl(-1, Collections.emptyList());

  private final int buttonNumber;
  private final List possibleEvents;

  public ButtonImpl(final int buttonNumber, final List possibleEvents) {
    this.buttonNumber = buttonNumber;
    this.possibleEvents = possibleEvents;
  }

  @Override
  public int getNumber() {
    return buttonNumber;
  }

  @Override
  public List getPossibleEvents() {
    return possibleEvents;
  }

  @Override
  public String toString() {
    return "Button{" +
        "buttonNumber=" + buttonNumber +
        ", possibleEvents=" + possibleEvents +
        '}';
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy