oscp5 icon indicating copy to clipboard operation
oscp5 copied to clipboard

OscArgument

Open knupel opened this issue 7 years ago • 0 comments

Hello, I try to make a pullrequest but like usual I fail.

My suggestion is add method to the class OscArgument, to manipulate this one easily:

	public Object get() {
		return value;
	}

	public String getTypetag() {
		if(value instanceof Integer) return "i" ;
		else if(value instanceof Float) return "f";
		else if(value instanceof Charracter) return "r";
		else if(value instanceof String) return "S";
		else if(value instanceof Double) return "d";
		else if(value instanceof Long) return "l";
		else if(value instanceof Boolean) return "b";
		else if(value instanceof byte[]) return "byte array or blod value";
		else return "Midi value";
	}

knupel avatar Jun 27 '17 10:06 knupel