1 17 package org.apache.commons.collections.primitives.adapters; 18 19 import java.io.Serializable ; 20 import java.util.List ; 21 22 import org.apache.commons.collections.primitives.BooleanList; 23 24 36 final public class BooleanListList extends AbstractBooleanListList implements Serializable { 37 38 50 public static List wrap(BooleanList list) { 51 if(null == list) { 52 return null; 53 } else if(list instanceof Serializable ) { 54 return new BooleanListList(list); 55 } else { 56 return new NonSerializableBooleanListList(list); 57 } 58 } 59 60 65 public BooleanListList(BooleanList list) { 66 _list = list; 67 } 68 69 protected BooleanList getBooleanList() { 70 return _list; 71 } 72 73 private BooleanList _list = null; 74 } 75 | Popular Tags |