/** * Creates a new array list and fills it with a given type-specific collection. * * @param c a type-specific collection that will be used to fill the array list. */ public IdentityArrayList(final ObjectCollection<? extends K> c) { this(c.size()); size = ObjectIterators.unwrap(c.iterator(), a); }
@Override public int size() { return collection.size(); } @Override
@Override public int size() { synchronized (sync) { return collection.size(); } } @Override
/** * Creates a new array set copying the contents of a given collection. * * @param c * a collection. */ public ObjectArraySet(ObjectCollection<K> c) { this(c.size()); addAll(c); } /**
/** * Creates a new hash set copying a given type-specific collection. * * @param c * a type-specific collection to be copied into the new hash set. * @param f * the load factor. */ public ObjectOpenHashSet(final ObjectCollection<? extends K> c, final float f) { this(c.size(), f); addAll(c); } /**
/** * Creates a new hash big set copying a given type-specific collection. * * @param c * a type-specific collection to be copied into the new hash big set. * @param f * the load factor. */ public ObjectOpenHashBigSet(final ObjectCollection<? extends K> c, final float f) { this(c.size(), f); addAll(c); } /**
/** * Creates a new hash set copying a given type-specific collection. * * @param c * a type-specific collection to be copied into the new hash set. * @param f * the load factor. */ public ObjectLinkedOpenHashSet(final ObjectCollection<? extends K> c, final float f) { this(c.size(), f); addAll(c); } /**
/** * Creates a new hash set copying a given type-specific collection. * * @param c * a type-specific collection to be copied into the new hash set. * @param f * the load factor. * @param strategy * the strategy. */ public ObjectOpenCustomHashSet(final ObjectCollection<? extends K> c, final float f, Strategy<? super K> strategy) { this(c.size(), f, strategy); addAll(c); } /**
/** * Creates a new hash set copying a given type-specific collection. * * @param c * a type-specific collection to be copied into the new hash set. * @param f * the load factor. * @param strategy * the strategy. */ public ObjectLinkedOpenCustomHashSet(final ObjectCollection<? extends K> c, final float f, Strategy<? super K> strategy) { this(c.size(), f, strategy); addAll(c); } /**
/** Creates a new array list and fills it with a given type-specific collection. * * @param c a type-specific collection that will be used to fill the array list. */ public IdentityArrayList ( final ObjectCollection <? extends K> c ) { this( c.size() ); size = ObjectIterators.unwrap( c.iterator(), a ); } /** Creates a new array list and fills it with a given type-specific list.
/** * Creates a new array list and fills it with a given type-specific collection. * * @param c * a type-specific collection that will be used to fill the array * list. */ public ObjectArrayList(final ObjectCollection<? extends K> c) { this(c.size()); size = ObjectIterators.unwrap(c.iterator(), a); } /**
private void setExtraArguments( final Object xtraPars ) throws IllegalArgumentException { if ( value2factoryClass == null ) throw new IllegalArgumentException( "No " + MetadataKeys.RULE + " property was specified for the dispatching factory" ); n = value2factoryClass.values().size(); documentFactory = new DocumentFactory[ n ]; Iterator<Class<? extends DocumentFactory>> it = value2factoryClass.values().iterator();
private void setExtraArguments( final Object xtraPars ) throws IllegalArgumentException { if ( value2factoryClass == null ) throw new IllegalArgumentException( "No " + MetadataKeys.RULE + " property was specified for the dispatching factory" ); n = value2factoryClass.values().size(); documentFactory = new DocumentFactory[ n ]; Iterator<Class<? extends DocumentFactory>> it = value2factoryClass.values().iterator();
private void setExtraArguments( final Object xtraPars ) throws IllegalArgumentException { if ( value2factoryClass == null ) throw new IllegalArgumentException( "No " + MetadataKeys.RULE + " property was specified for the dispatching factory" ); n = value2factoryClass.values().size(); documentFactory = new DocumentFactory[ n ]; Iterator<Class<? extends DocumentFactory>> it = value2factoryClass.values().iterator();
private void setExtraArguments( final Object xtraPars ) throws IllegalArgumentException { if ( value2factoryClass == null ) throw new IllegalArgumentException( "No " + MetadataKeys.RULE + " property was specified for the dispatching factory" ); n = value2factoryClass.values().size(); documentFactory = new DocumentFactory[ n ]; Iterator<Class<? extends DocumentFactory>> it = value2factoryClass.values().iterator();
/** * Creates a new big-array big list and fills it with a given type-specific * collection. * * @param c * a type-specific collection that will be used to fill the array * list. */ public ObjectBigArrayBigList(final ObjectCollection<? extends K> c) { this(c.size()); for (ObjectIterator<? extends K> i = c.iterator(); i.hasNext();) add(i.next()); } /**
m = value2factoryClass.values().size(); return true;
m = value2factoryClass.values().size(); return true;
m = value2factoryClass.values().size(); return true;
m = value2factoryClass.values().size(); return true;