2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.hue.internal.api.dto.clip2.enums;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
21 * Enum for 'effect' types.
23 * @author Andrew Fiddian-Green - Initial contribution
26 public enum EffectType {
39 private static final Set<EffectType> FIXED = Set.of(PRISM, OPAL, GLISTEN, SPARKLE, FIRE, CANDLE);
40 private static final Set<EffectType> TIMED = Set.of(SUNRISE);
42 public static EffectType of(@Nullable String value) {
45 return valueOf(value.toUpperCase());
46 } catch (IllegalArgumentException e) {
53 public boolean isFixed() {
54 return FIXED.contains(this);
57 public boolean isTimed() {
58 return TIMED.contains(this);