本文整理汇总了Java中org.openhab.core.types.PrimitiveType类的典型用法代码示例。如果您正苦于以下问题:Java PrimitiveType类的具体用法?Java PrimitiveType怎么用?Java PrimitiveType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PrimitiveType类属于org.openhab.core.types包,在下文中一共展示了PrimitiveType类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getConstituents
import org.openhab.core.types.PrimitiveType; //导入依赖的package包/类
@Override
public SortedMap<String, PrimitiveType> getConstituents() {
TreeMap<String, PrimitiveType> map = new TreeMap<String, PrimitiveType>();
map.put(KEY_HUE, getHue());
map.put(KEY_SATURATION, getSaturation());
map.put(KEY_BRIGHTNESS, getBrightness());
return map;
}
示例2: getConstituents
import org.openhab.core.types.PrimitiveType; //导入依赖的package包/类
@Override
public SortedMap<String, PrimitiveType> getConstituents() {
SortedMap<String, PrimitiveType> result = new TreeMap<String, PrimitiveType>();
result.put(KEY_LATITUDE, getLatitude());
result.put(KEY_LONGITUDE, getLongitude());
result.put(KEY_ALTITUDE, getAltitude());
return result;
}
示例3: CallType
import org.openhab.core.types.PrimitiveType; //导入依赖的package包/类
public CallType() {
callDetails = new TreeMap<String, PrimitiveType>();
}
示例4: getConstituents
import org.openhab.core.types.PrimitiveType; //导入依赖的package包/类
public SortedMap<String, PrimitiveType> getConstituents() {
return callDetails;
}
示例5: getDestNum
import org.openhab.core.types.PrimitiveType; //导入依赖的package包/类
public PrimitiveType getDestNum() {
return callDetails.get(DEST_NUM);
}
示例6: getOrigNum
import org.openhab.core.types.PrimitiveType; //导入依赖的package包/类
public PrimitiveType getOrigNum() {
return callDetails.get(ORIG_NUM);
}