/** * Factory method to create an unmodifiable bounded collection. * * @param coll the <code>BoundedCollection</code> to decorate, must not be null * @return a new unmodifiable bounded collection * @throws IllegalArgumentException if bag is null */ public static BoundedCollection decorate(BoundedCollection coll) { return new UnmodifiableBoundedCollection(coll); }
/** * Factory method to create an unmodifiable bounded collection. * * @param coll the <code>BoundedCollection</code> to decorate, must not be null * @return a new unmodifiable bounded collection * @throws IllegalArgumentException if bag is null */ public static BoundedCollection decorate(BoundedCollection coll) { return new UnmodifiableBoundedCollection(coll); }
throw new IllegalArgumentException("The collection is not a bounded collection"); return new UnmodifiableBoundedCollection((BoundedCollection) coll);
throw new IllegalArgumentException("The collection is not a bounded collection"); return new UnmodifiableBoundedCollection((BoundedCollection) coll);
/** * Factory method to create an unmodifiable bounded collection. * * @param coll the <code>BoundedCollection</code> to decorate, must not be null * @return a new unmodifiable bounded collection * @throws IllegalArgumentException if bag is null */ public static BoundedCollection decorate(BoundedCollection coll) { return new UnmodifiableBoundedCollection(coll); }
/** * Factory method to create an unmodifiable bounded collection. * * @param coll the <code>BoundedCollection</code> to decorate, must not be null * @return a new unmodifiable bounded collection * @throws IllegalArgumentException if bag is null */ public static BoundedCollection decorate(BoundedCollection coll) { return new UnmodifiableBoundedCollection(coll); }
/** * Factory method to create an unmodifiable bounded collection. * * @param coll the <code>BoundedCollection</code> to decorate, must not be null * @return a new unmodifiable bounded collection * @throws IllegalArgumentException if bag is null */ public static BoundedCollection decorate(BoundedCollection coll) { return new UnmodifiableBoundedCollection(coll); }
/** * Factory method to create an unmodifiable bounded collection. * * @param coll the <code>BoundedCollection</code> to decorate, must not be null * @return a new unmodifiable bounded collection * @throws IllegalArgumentException if bag is null */ public static BoundedCollection decorate(BoundedCollection coll) { return new UnmodifiableBoundedCollection(coll); }
/** * Factory method to create an unmodifiable bounded collection. * * @param coll the <code>BoundedCollection</code> to decorate, must not be null * @return a new unmodifiable bounded collection * @throws IllegalArgumentException if bag is null */ public static BoundedCollection decorate(BoundedCollection coll) { return new UnmodifiableBoundedCollection(coll); }
throw new IllegalArgumentException("The collection is not a bounded collection"); return new UnmodifiableBoundedCollection((BoundedCollection) coll);
throw new IllegalArgumentException("The collection is not a bounded collection"); return new UnmodifiableBoundedCollection((BoundedCollection) coll);
throw new IllegalArgumentException("The collection is not a bounded collection"); return new UnmodifiableBoundedCollection((BoundedCollection) coll);
throw new IllegalArgumentException("The collection is not a bounded collection"); return new UnmodifiableBoundedCollection((BoundedCollection) coll);
throw new IllegalArgumentException("The collection is not a bounded collection"); return new UnmodifiableBoundedCollection((BoundedCollection) coll);