/** * Constructs an instance. It is illegal to modify the given list once * it is used to construct an instance of this class. * * @param itemType {@code non-null;} the type of the item * @param items {@code non-null and non-empty;} list of items to represent */ public UniformListItem(ItemType itemType, List<T> items) { super(getAlignment(items), writeSize(items)); if (itemType == null) { throw new NullPointerException("itemType == null"); } this.items = items; this.itemType = itemType; }
/** * Constructs an instance. It is illegal to modify the given list once * it is used to construct an instance of this class. * * @param itemType {@code non-null;} the type of the item * @param items {@code non-null and non-empty;} list of items to represent */ public UniformListItem(ItemType itemType, List<T> items) { super(getAlignment(items), writeSize(items)); if (itemType == null) { throw new NullPointerException("itemType == null"); } this.items = items; this.itemType = itemType; }
/** * Constructs an instance. It is illegal to modify the given list once * it is used to construct an instance of this class. * * @param itemType {@code non-null;} the type of the item * @param items {@code non-null and non-empty;} list of items to represent */ public UniformListItem(ItemType itemType, List<T> items) { super(getAlignment(items), writeSize(items)); if (itemType == null) { throw new NullPointerException("itemType == null"); } this.items = items; this.itemType = itemType; }
/** * Constructs an instance. It is illegal to modify the given list once * it is used to construct an instance of this class. * * @param itemType {@code non-null;} the type of the item * @param items {@code non-null and non-empty;} list of items to represent */ public UniformListItem(ItemType itemType, List<T> items) { super(getAlignment(items), writeSize(items)); if (itemType == null) { throw new NullPointerException("itemType == null"); } this.items = items; this.itemType = itemType; }
/** * Constructs an instance. It is illegal to modify the given list once * it is used to construct an instance of this class. * * @param itemType {@code non-null;} the type of the item * @param items {@code non-null and non-empty;} list of items to represent */ public UniformListItem(ItemType itemType, List<T> items) { super(getAlignment(items), writeSize(items)); if (itemType == null) { throw new NullPointerException("itemType == null"); } this.items = items; this.itemType = itemType; }
/** * Constructs an instance. It is illegal to modify the given list once * it is used to construct an instance of this class. * * @param itemType {@code non-null;} the type of the item * @param items {@code non-null and non-empty;} list of items to represent */ public UniformListItem(ItemType itemType, List<T> items) { super(getAlignment(items), writeSize(items)); if (itemType == null) { throw new NullPointerException("itemType == null"); } this.items = items; this.itemType = itemType; }
/** * Constructs an instance. It is illegal to modify the given list once * it is used to construct an instance of this class. * * @param itemType {@code non-null;} the type of the item * @param items {@code non-null and non-empty;} list of items to represent */ public UniformListItem(ItemType itemType, List<T> items) { super(getAlignment(items), writeSize(items)); if (itemType == null) { throw new NullPointerException("itemType == null"); } this.items = items; this.itemType = itemType; }
/** * Constructs an instance. It is illegal to modify the given list once * it is used to construct an instance of this class. * * @param itemType {@code non-null;} the type of the item * @param items {@code non-null and non-empty;} list of items to represent */ public UniformListItem(ItemType itemType, List<T> items) { super(getAlignment(items), writeSize(items)); if (itemType == null) { throw new NullPointerException("itemType == null"); } this.items = items; this.itemType = itemType; }