src/main/java/tinyrtpl/Data.java
public boolean toBoolean() {
        boolean b = false;
        switch (type) {
            case 1:
                b = this.vboolean;
                break;
            case 2:
                b = (this.vint != 0);
                break;
            case 3:
                b = (this.vfloat != 0.0f && this.vfloat != 0.0);
                break;
            case 4:
                b = !(this.vstring == null || "".equals(this.vstring));
                break;
            case 5:
                b = (this.vmap != null);
                break;
            case 6:
                b = (this.varray != null);
                break;
            default:
        }
        return b;
    }
/**
     * Return the boolean value of this instance.
     * @return boolean value in the Object
     */
Return the boolean value of this instance.
@return boolean value in the Object
Return the boolean value of this instance . @return boolean value in the Object
public boolean toBoolean() {
        boolean b = false;
        switch (type) {
            case 1:
                b = this.vboolean;
                break;
            case 2:
                b = (this.vint != 0);
                break;
            case 3:
                b = (this.vfloat != 0.0f && this.vfloat != 0.0);
                break;
            case 4:
                b = !(this.vstring == null || "".equals(this.vstring));
                break;
            case 5:
                b = (this.vmap != null);
                break;
            case 6:
                b = (this.varray != null);
                break;
            default:
        }
        return b;
    }
public boolean toBoolean ( ) { boolean b = false ; switch ( type ) { case 1 : b = this . vboolean ; break ; case 2 : b = ( this . vint != 0 ) ; break ; case 3 : b = ( this . vfloat != 0.0f && this . vfloat != 0.0 ) ; break ; case 4 : b = ! ( this . vstring == null || "" . equals ( this . vstring ) ) ; break ; case 5 : b = ( this . vmap != null ) ; break ; case 6 : b = ( this . varray != null ) ; break ; default : } return b ; }
Return the boolean value of this instance.
Return the boolean value of this instance .