Searched refs:items (Results 1 - 25 of 66) sorted by relevance

123

/openjdk7/langtools/test/tools/javac/diags/examples/
H A DVarargsNonReifiableType.java28 void m(T... items) { argument
H A DUncheckedGenericArrayCreation.java33 void show(T... items) { argument
/openjdk7/jdk/src/share/back/
H A Dbag.c32 void *items; /* hold items in bag, must align on itemSize */ member in struct:bag
33 int used; /* number of items in bag */
45 theBag->items = jvmtiAllocate(initialAllocation * itemSize);
46 if (theBag->items == NULL) {
63 (void)memcpy(newBag->items, oldBag->items, newBag->used * newBag->itemSize);
72 jvmtiDeallocate(theBag->items);
80 char *items = theBag->items; local
98 void *items = theBag->items; local
125 void *items = theBag->items; local
149 char *items = theBag->items; local
[all...]
/openjdk7/jdk/src/share/classes/java/util/concurrent/
H A DArrayBlockingQueue.java80 * even for the items array, which is default-serialized, even if
86 /** The queued items */
87 final Object[] items; field in class:ArrayBlockingQueue
89 /** items index for next take, poll, peek or remove */
92 /** items index for next put, offer, or add */
116 return (++i == items.length) ? 0 : i;
123 return ((i == 0) ? items.length : i) - 1;
135 return this.<E>cast(items[i]);
153 items[putIndex] = x;
164 final Object[] items
[all...]
/openjdk7/jdk/test/java/util/concurrent/ConcurrentQueues/
H A DConcurrentQueueLoops.java38 * @summary Checks that a set of threads can repeatedly get and modify items
54 int items = 1024 * 1024; field in class:ConcurrentQueueLoops
60 queues.add(new ArrayBlockingQueue<Integer>(items, false));
79 items = Integer.parseInt(args[1]);
92 oneRun(1, items, q);
94 oneRun(3, items, q);
99 oneRun(i, items, q);
108 int items; field in class:ConcurrentQueueLoops.Stage
109 Stage(Queue<Integer> q, CyclicBarrier b, int items) { argument
112 this.items
148 oneRun(int n, int items, final Queue<Integer> q) argument
[all...]
/openjdk7/jdk/src/share/native/java/util/zip/zlib-1.2.3/
H A Dzutil.c240 voidpf zcalloc (voidpf opaque, unsigned items, unsigned size) argument
243 ulg bsize = (ulg)items*size;
299 voidpf zcalloc (voidpf opaque, unsigned items, unsigned size) argument
302 return _halloc((long)items, size);
320 extern voidp calloc OF((uInt items, uInt size));
324 voidpf zcalloc (opaque, items, size)
326 unsigned items;
329 if (opaque) items += size - size; /* make compiler happy */
330 return sizeof(uInt) > 2 ? (voidpf)malloc(items * size) :
331 (voidpf)calloc(items, siz
[all...]
/openjdk7/jdk/src/share/classes/sun/tools/jstat/
H A DJStatLogger.java58 List<Monitor> items = monitoredVm.findByPattern(names);
59 Collections.sort(items, comparator);
61 for (Monitor m: items) {
78 List<Monitor> items = monitoredVm.findByPattern(names);
79 Collections.sort(items, comparator);
81 printList(items, verbose, showUnsupported, out);
/openjdk7/jdk/test/java/lang/management/GarbageCollectorMXBean/
H A DGcInfoCompositeType.java89 Set<String> items = new HashSet<String>(ct.keySet());
90 System.out.println("Items at start: " + items);
97 // Also track which items had corresponding getters, to make sure
103 items.remove(key);
108 if (items.isEmpty()) {
109 System.out.println("No type-specific items");
112 System.out.println("Type-specific items: " + items);
/openjdk7/jdk/src/share/classes/javax/management/openmbean/
H A DCompositeDataSupport.java77 * As a <tt>CompositeType</tt> does not specify any order on its items,
80 * The items contained in this <tt>CompositeDataSupport</tt> instance are
97 * @param itemValues the values of the items, listed in the same order as
109 * <tt>itemValues[]</tt>'s size differs from the number of items defined in
151 * are given by the mappings in the map <tt>items</tt>.
157 * @param items the mappings of all the item names to their values;
158 * <tt>items</tt> must contain all the item names defined in <tt>compositeType</tt>;
162 * <tt>items</tt> is null or empty, or one of the keys in <tt>items</tt> is a null
164 * @throws OpenDataException <tt>items</t
173 CompositeDataSupport(CompositeType compositeType, Map<String,?> items) argument
179 makeMap(Map<String, ?> items) argument
198 CompositeDataSupport( SortedMap<String, Object> items, CompositeType compositeType) argument
[all...]
/openjdk7/jdk/src/share/classes/java/awt/
H A DMenu.java70 return menu.items;
76 * A vector of the items that will be part of the Menu.
81 Vector items = new Vector(); field in class:Menu
216 * Get the number of items in this menu.
217 * @return the number of items in this menu.
238 return items.size();
255 return (MenuItem)items.elementAt(index);
273 items.addElement(mi);
329 /* Add the removed items back to the menu, they are
395 /* Add the removed items bac
[all...]
H A DCheckboxMenuItem.java46 * alt="Menu labeled Examples, containing items Basic, Simple, Check, and More Examples. The Check item is a CheckBoxMenuItem instance, in the off state."
213 Object[] items = new Object[1];
214 items[0] = label;
215 return items;
345 * Check box menu items currently support only item events.
497 * For checkbox menu items, the AccessibleContext takes the
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/xsom/impl/scd/
H A DIterators.java163 * Only return unique items.
201 private final T[] items; field in class:Iterators.Array
203 public Array(T[] items) { argument
204 this.items = items;
208 return index<items.length;
212 return items[index++];
/openjdk7/jdk/src/share/classes/javax/swing/
H A DDefaultComboBoxModel.java55 * @param items an array of Object objects
57 public DefaultComboBoxModel(final E items[]) { argument
58 objects = new Vector<E>(items.length);
61 for ( i=0,c=items.length;i<c;i++ )
62 objects.addElement(items[i]);
/openjdk7/jdk/src/windows/classes/sun/awt/windows/
H A DWChoicePeer.java73 public native void addItems(String[] items, int index); argument
91 String[] items = new String[itemCount];
93 items[i] = opt.getItem(i);
95 addItems(items, 0);
H A DWListPeer.java89 native void addItems(String[] items, int index, int width); argument
135 // add any items that were already inserted in the target.
138 String[] items = new String[nitems];
142 items[i] = li.getItem(i);
143 width = fm.stringWidth(items[i]);
148 addItems(items, 0, maxWidth);
/openjdk7/jdk/src/solaris/classes/sun/awt/X11/
H A DListHelper.java40 * Class to paint a list of items, possibly with scrollbars
41 * This class paints all items with the same font
42 * For now, this class manages the list of items and painting thereof, but not
51 // of items
53 // of items and and item's bg, and between
54 // items
60 private java.util.List items; // List of items field in class:ListHelper
63 private java.util.List selected; // List of selected items
64 private boolean multiSelect; // Can multiple items b
[all...]
H A DXBaseMenuWindow.java66 * Array of items.
68 private ArrayList<XMenuItemPeer> items; field in class:XBaseMenuWindow
71 * Index of selected item in array of items
84 * 1. Access to items vector
128 * items in order that they appear on screen and may contain
138 private XMenuItemPeer[] items; field in class:XBaseMenuWindow.MappingData
142 * of menu items
144 MappingData(XMenuItemPeer[] items) { argument
145 this.items = items;
366 reloadItems(Vector items) argument
[all...]
H A DXListPeer.java73 Vector items; field in class:XListPeer
142 items = new Vector();
157 // do we really want/need a copy of all the items?
158 // get all items from target
162 items.addElement(l.getItem(i));
170 vsb.setValues(index, 0, 0, items.size());
176 // get the index containing all indexes to selected items
282 int end = items.size();
284 int l = fm.stringWidth(((String)items.elementAt(i)));
295 return fm.stringWidth((String)items
[all...]
/openjdk7/jdk/src/share/classes/javax/management/
H A DInQueryExp.java62 public InQueryExp(ValueExp v1, ValueExp items[]) { argument
64 valueList = items;
/openjdk7/jdk/src/windows/native/java/util/
H A DTimeZone_md.c393 #define TZ_NITEMS 4 /* number of items (fields) */
412 char *items[TZ_NITEMS]; local
445 items[itemIndex] = start;
462 if (noMapID || strcmp(mapID, items[TZ_MAPID]) == 0) {
464 * When there's no mapID, we need to scan items until the
470 if (strcmp(items[TZ_WIN_NAME], tzName) == 0) {
474 javaTZName = _strdup(items[TZ_JAVA_NAME]);
480 if (*items[TZ_REGION] == '\0') {
481 strncpy(bestMatch, items[TZ_JAVA_NAME], MAX_ZONE_CHAR);
482 } else if (country != NULL && strcmp(items[TZ_REGIO
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/text/html/
H A DFrameSetView.java85 String[] items = new String[Math.max(nTokens, n)];
88 items[i] = tokenizer.nextToken().trim();
92 if (items[i].equals("100%")) {
93 items[i] = "*";
98 for (; i < items.length; i++) {
99 items[i] = "*";
101 return items;
/openjdk7/jdk/src/macosx/classes/com/apple/laf/
H A DScreenMenu.java87 * way, such as the number of menu items, the text of the menuitems, icon, shortcut etc.
89 static boolean needsUpdate(final Component items[], final int childHashArray[]) { argument
90 if (items == null || childHashArray == null) {
93 if (childHashArray.length != items.length) {
96 for (int i = 0; i < items.length; i++) {
97 final int hashCode = getHashCode(items[i]);
111 final Component[] items = fInvoker.getMenuComponents();
112 if (needsUpdate(items, childHashArray)) {
118 addItem(items[i]);
119 childHashArray[i] = getHashCode(items[
[all...]
/openjdk7/jdk/src/share/sample/scripting/scriptpad/src/resources/
H A Dscriptpad.js449 items: [
462 items: [
473 items: [
480 items: [
493 items: [
512 var items = menuData[m].items;
514 for (var i in items) {
515 if (items[i].name.equals("-")) {
518 var mi = new JMenuItem(items[
[all...]
/openjdk7/langtools/test/tools/javac/
H A DT6705935.java90 private <T> List<T> asList(Iterable<? extends T> items) { argument
92 for (T item: items)
/openjdk7/jdk/src/share/classes/sun/tools/tree/
H A DFieldUpdater.java121 * Duplicate <code>items</code> words from the top of the stack, locating them
128 private void codeDup(Assembler asm, int items, int depth) { argument
129 switch (items) {
161 throw new CompilerError("can't dup: " + items + ", " + depth);

Completed in 68 milliseconds

123