Package ceylon.language

Examples of ceylon.language.AssertionError


     */
    public static short[] javaShortArray(@Name("array") Array<java.lang.Short> array){
        if(array.toArray() instanceof short[]){
            return (short[]) array.toArray();
        }
        throw new AssertionError("Invalid source array type: "+array.toArray());
    }
View Full Code Here


     */
    public static char[] javaCharArray(@Name("array") Array<java.lang.Character> array){
        if(array.toArray() instanceof char[]){
            return (char[]) array.toArray();
        }
        throw new AssertionError("Invalid source array type: "+array.toArray());
    }
View Full Code Here

        @SuppressWarnings("rawtypes")
        Object a = ((Array) array).toArray();
        if(a instanceof double[]){
            return (double[]) a;
        }
        throw new AssertionError("Invalid source array type: "+a);
    }
View Full Code Here

        @SuppressWarnings("rawtypes")
        Object a = ((Array) array).toArray();
        if(a instanceof boolean[]){
            return (boolean[]) a;
        }
        throw new AssertionError("Invalid source array type: "+ a);
    }
View Full Code Here

        @SuppressWarnings("rawtypes")
        Object a = ((Array) array).toArray();
        if (a instanceof byte[]){
            return (byte[]) a;
        }
        throw new AssertionError("Invalid source array type: "+a);
    }
View Full Code Here

TOP

Related Classes of ceylon.language.AssertionError

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.