/** * Copyright (c) 2014-2017 by the respective copyright holders. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */ package org.eclipse.smarthome.core.library.types; import org.eclipse.smarthome.core.library.items.PlayerItem; import org.eclipse.smarthome.core.types.Command; import org.eclipse.smarthome.core.types.PrimitiveType; import org.eclipse.smarthome.core.types.State; /** * This type is used by the {@link PlayerItem}. * * @author Alex Tugarev */ public enum RewindFastforwardType implements PrimitiveType, State, Command { REWIND, FASTFORWARD; @Override public String format(String pattern) { return String.format(pattern, this.toString()); } @Override public String toString() { return toFullString(); } @Override public String toFullString() { return super.toString(); } }