Package openperipheral.api

Examples of openperipheral.api.PeripheralTypeId


  private static String tryGetName(Object target) {
    if (target == null) return "invalid";

    final Class<? extends Object> cls = target.getClass();

    PeripheralTypeId customId = cls.getAnnotation(PeripheralTypeId.class);
    if (customId != null) return customId.value();

    if (target instanceof IInventory) {
      try {
        return ((IInventory)target).getInventoryName();
      } catch (Throwable t) {
View Full Code Here

TOP

Related Classes of openperipheral.api.PeripheralTypeId

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.