sojamo / oscp5

An Open Sound Control (OSC) implementation for Java and Processing
GNU Lesser General Public License v2.1
132 stars 51 forks source link

OscArgument #7

Open knupel opened 7 years ago

knupel commented 7 years ago

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";
    }