/**
* 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.types;
/**
* Denotes that a {@link State} object is convertible into another type.
*
* @author Simon Kaufmann - initial contribution and API
*
*/
public interface Convertible {
/**
* Convert this {@link State}'s value into another type
*
* @param target the desired {@link State} type
* @return the {@link State}'s value in the given type's representation, or <code>null</code> if the conversion was
* not possible
*/
public State as(Class<? extends State> target);
}