public static LwM2mSingleResource newFloatResource(int id, double value) { return new LwM2mSingleResource(id, value, Type.FLOAT); }
public static LwM2mSingleResource newStringResource(int id, String value) { return new LwM2mSingleResource(id, value, Type.STRING); }
public static LwM2mSingleResource newDateResource(int id, Date value) { return new LwM2mSingleResource(id, value, Type.TIME); }
public static LwM2mSingleResource newBinaryResource(int id, byte[] value) { return new LwM2mSingleResource(id, value, Type.OPAQUE); }
public static LwM2mSingleResource newIntegerResource(int id, long value) { return new LwM2mSingleResource(id, value, Type.INTEGER); }
public static LwM2mSingleResource newObjectLinkResource(int id, ObjectLink objlink) { return new LwM2mSingleResource(id, objlink, Type.OBJLNK); }
public static LwM2mSingleResource newBooleanResource(int id, boolean value) { return new LwM2mSingleResource(id, value, Type.BOOLEAN); }
throw new IllegalArgumentException(String.format("Type %s is not supported", type.name())); return new LwM2mSingleResource(id, value, type);