public static void marshallIntCollection ( Collection < Integer > collection , ObjectOutput out ) throws IOException { final int size = collection == null ? NULL_VALUE : collection . size ( ) ; marshallSize ( out , size ) ; if ( size <= 0 ) { return ; } for ( Integer integer : collection ) { out . writeInt ( integer ) ; } }
Marshalls a collection of integers .