Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OscArgument #7

Open
knupel opened this issue Jun 27, 2017 · 0 comments
Open

OscArgument #7

knupel opened this issue Jun 27, 2017 · 0 comments

Comments

@knupel
Copy link

knupel commented Jun 27, 2017

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";
	}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant