Mittwoch, 21. April 2010

My first op4j code

I play around with op4j makes a lot of fun. Here my first op4j code:
// Create a array with out null and 0 values
Integer[] integers = Op.onArrayFor(1, 2, 3, null, 4, null, 0).removeAllNull().removeAllEqual(0).get();
  
// Assert
for (Integer value : integers) {
   assertNotNull(value);
   assertNotSame(0, value);
}

Link: