@@ -0,0 +1,1121 @@
+package io.nub.core.util.arrays;%0A%0Aimport java.util.Arrays;%0A%0A/**%0A * A special handler for Boolean Arrays of type Array%3CBoolean%3E%0A * %0A * @author Nektro%0A * @since  26-04-2016%0A * @see    java.lang.Boolean%0A * @see    io.nub.core.util.arrays.Array%0A */%0Apublic class ArrayBoolean extends Array%3CBoolean%3E%0A%7B%0A%09private static final long serialVersionUID = -5255915783619325879L;%0A%09%0A%09public ArrayBoolean()%0A%09%7B%0A%09%09super();%0A%09%7D%0A%09%0A%09public %3CT%3E ArrayBoolean(Array%3CT%3E fromArray)%0A%09%7B%0A%09%09super();%0A%09%09for (T t : fromArray) %7B%0A%09%09%09if (t instanceof Boolean) %7B%0A%09%09%09%09this.add((Boolean) t);%0A%09%09%09%7D%0A%09%09%09else if (t instanceof String) %7B%0A%09%09%09%09this.add(Boolean.valueOf((String) t));%0A%09%09%09%7D%0A%09%09%09else %7B%0A%09%09%09%09throw new ClassFormatError(%22Cannot create ArrayBoolean from Array of type: %22 + t.getClass().getName());%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09//this.addAll(fromArray);%0A%09%7D%0A%09%0A%09@Override%0A%09public String toString()%0A%09%7B%0A%09%09return Arrays.toString(toArray());%0A%09%7D%0A%09%0A%09/**%0A%09 * @return a new %7B@link ArrayBoolean%7D with all the values inversed from this.%0A%09 */%0A%09public ArrayBoolean complement()%0A%09%7B%0A%09%09ArrayBoolean ab = new ArrayBoolean();%0A%09%09%0A%09%09for (Boolean b : this) %7B%0A%09%09%09ab.add(!b);%0A%09%09%7D%0A%09%09%0A%09%09return ab;%0A%09%7D%0A%7D%0A

add ArrayBoolean a special Array<Boolean>