Package org.openhab.binding.zwave.internal.converter.state

Examples of org.openhab.binding.zwave.internal.converter.state.StateComparator


  protected ZWaveStateConverter<?,?> getStateConverter(Item item, Object value) {
    if(item == null)
      return null;

    List<Class<? extends State>> list = new ArrayList<Class<? extends State>>(item.getAcceptedDataTypes());
    Collections.sort(list, new StateComparator());

    for (Class<? extends State> stateClass : list) {
      ZWaveStateConverter<?,?> result = stateConverters.get(stateClass);

      if (result == null || !result.getType().isInstance(value))
View Full Code Here

TOP

Related Classes of org.openhab.binding.zwave.internal.converter.state.StateComparator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.