Searched defs:element (Results 1 - 20 of 20) sorted by relevance

/libcore/luni/src/main/java/java/lang/annotation/
H A DAnnotationTypeMismatchException.java32 private Method element; field in class:AnnotationTypeMismatchException
37 * Constructs an instance for the given type element and the type found.
39 * @param element
40 * the annotation type element.
46 public AnnotationTypeMismatchException(Method element, String foundType) { argument
47 super("The annotation element " + element + " doesn't match the type " + foundType);
48 this.element = element;
57 public Method element() { method in class:AnnotationTypeMismatchException
[all...]
/libcore/luni/src/main/java/java/util/
H A DAbstractQueue.java18 * {@link #element element} are based on {@link #offer offer}, {@link
46 * Inserts the specified element into this queue if it is possible to do so
54 * @param e the element to add
56 * @throws IllegalStateException if the element cannot be added at this
58 * @throws ClassCastException if the class of the specified element
60 * @throws NullPointerException if the specified element is null and
62 * @throws IllegalArgumentException if some property of this element
102 public E element() { method in class:AbstractQueue
130 * and adds each element returne
[all...]
H A DQueue.java44 * <td>{@link #element element()}</td>
55 * element which would be removed by a call to {@link #remove() } or
61 * <p>The {@link #offer offer} method inserts an element if possible,
64 * add an element only by throwing an unchecked exception. The
71 * Exactly which element is removed from the queue is a
78 * <p>The {@link #element()} and {@link #peek()} methods return, but do
96 * element-based versions of methods <tt>equals</tt> and
98 * from class <tt>Object</tt>, because element-based equality is not
116 * Inserts the specified element int
179 E element(); method in interface:Queue
[all...]
H A DUnsafeArrayList.java36 @Override public boolean add(T element) { argument
42 array[size++] = element;
H A DDeque.java14 * A linear collection that supports element insertion and removal at
23 * examine the element. Each of these methods exists in two forms:
100 * <td>{@link java.util.Queue#element element()}</td>
155 * element-based versions of the <tt>equals</tt> and <tt>hashCode</tt>
167 * Inserts the specified element at the front of this deque if it is
172 * @param e the element to add
173 * @throws IllegalStateException if the element cannot be added at this
175 * @throws ClassCastException if the class of the specified element
177 * @throws NullPointerException if the specified element i
434 E element(); method in interface:Deque
[all...]
H A DHugeEnumSet.java121 public boolean add(E element) { argument
122 elementClass.cast(element); // Called to throw ClassCastException.
123 int ordinal = element.ordinal();
179 // zero out unused bits on the last element
H A DMiniEnumSet.java108 public boolean add(E element) { argument
109 elementClass.cast(element); // Called to throw ClassCastException.
111 long newBits = oldBits | (1L << element.ordinal());
146 Enum<E> element = (Enum<E>) object;
147 int ordinal = element.ordinal();
221 Enum<E> element = (Enum<E>) object;
222 int ordinal = element.ordinal();
H A DArrayDeque.java69 * The index of the element at the head of the deque (which is the
70 * element that would be removed by remove() or pop()); or an
76 * The index at which the next element would be added to the tail
134 * Copies the elements from our element array into the specified array,
135 * in order (from first to last element in the deque). It is assumed
172 * iterator. (The first element returned by the collection's
173 * iterator becomes the first element, or <i>front</i> of the
189 * Inserts the specified element at the front of this deque.
191 * @param e the element to add
192 * @throws NullPointerException if the specified element i
440 public E element() { method in class:ArrayDeque
[all...]
H A DArrays.java46 for (E element : a) {
47 if (object.equals(element)) {
52 for (E element : a) {
53 if (element == null) {
146 * the elements can be set. Setting an element modifies the underlying
159 * Searching in an unsorted array has an undefined result. It's also undefined which element
160 * is found if there are multiple occurrences of the same element.
163 * @param value the element to find.
164 * @return the non-negative index of the element, or a negative index which
165 * is {@code -index - 1} where the element woul
1306 deepHashCodeElement(Object element) argument
[all...]
H A DLinkedList.java33 * as a list if you expect your lists to contain zero or one element, but still require the
266 * specified location. The object is inserted before any previous element at
480 * @return {@code true} if {@code object} is an element of this
523 * Returns the first element in this {@code LinkedList}.
525 * @return the first element.
542 * Returns the last element in this {@code LinkedList}.
544 * @return the last element
835 E element = iter.next();
836 if (o == null ? element == null : o.equals(element)) {
911 public E element() { method in class:LinkedList
[all...]
H A DCollections.java62 private final E element; field in class:Collections.CopiesList
69 element = object;
73 return element == null ? object == null : element.equals(object);
82 return element;
225 final E element; field in class:Collections.SingletonSet
228 element = object;
232 return element == null ? object == null : element.equals(object);
250 return element;
265 final E element; field in class:Collections.SingletonList
2780 @Override public E element() { method in class:Collections.AsLIFOQueue
[all...]
/libcore/luni/src/test/java/libcore/java/util/
H A DLocaleTest.java94 private static void assertOnce(Locale element, Locale[] array) { argument
97 if (l.equals(element)) {
/libcore/luni/src/main/java/java/util/concurrent/
H A DBlockingDeque.java12 * for the deque to become non-empty when retrieving an element, and wait for
13 * space to become available in the deque when storing an element.
147 * <td>{@link #element() element()}</td>
160 * actions subsequent to the access or removal of that element from
180 * Inserts the specified element at the front of this deque if it is
186 * @param e the element to add
189 * @throws NullPointerException if the specified element is null
195 * Inserts the specified element at the end of this deque if it is
201 * @param e the element t
542 E element(); method in interface:BlockingDeque
[all...]
H A DLinkedBlockingDeque.java183 * Links node as first element, or returns false if full.
202 * Links node as last element, or returns false if full.
221 * Removes and returns first element, or null if empty.
243 * Removes and returns last element, or null if empty.
591 * Inserts the specified element at the end of this deque unless it would
597 * @throws IllegalStateException if the element cannot be added at this
599 * @throws NullPointerException if the specified element is null
607 * @throws NullPointerException if the specified element is null
666 public E element() { method in class:LinkedBlockingDeque
681 * an element wil
[all...]
H A DConcurrentLinkedDeque.java56 * actions subsequent to the access or removal of that element from
103 * A new element is added atomically by CASing the null prev or
105 * containing the element. The element's node atomically becomes
134 * the element from the collection, and makes the containing node
172 * the same element twice, but we don't guarantee whether a
207 * We believe (without full proof) that all single-element deque
325 * Links e as first element.
346 // for e to become an element of this deque,
358 * Links e as last element
1003 public E element() { return getFirst(); } method in class:ConcurrentLinkedDeque
[all...]
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DAnnotationsTest.java92 AnnotatedElement element, Class<? extends Annotation>... expectedAnnotations) {
93 Set<Class<? extends Annotation>> actualTypes = annotationsToTypes(element.getAnnotations());
98 assertPresent(expectedTypes.contains(AnnotationA.class), element, AnnotationA.class);
99 assertPresent(expectedTypes.contains(AnnotationB.class), element, AnnotationB.class);
100 assertPresent(expectedTypes.contains(AnnotationC.class), element, AnnotationC.class);
103 element.isAnnotationPresent(null);
109 element.getAnnotation(null);
123 private void assertPresent(boolean present, AnnotatedElement element, argument
126 assertNotNull(element.getAnnotation(annotation));
127 assertTrue(element
91 assertAnnotatedElement( AnnotatedElement element, Class<? extends Annotation>... expectedAnnotations) argument
[all...]
H A DReflectionTest.java358 private int count(List<?> list, Object element) { argument
361 if (o.equals(element)) {
/libcore/luni/src/test/java/libcore/xml/
H A DJaxenXPathTestSuite.java101 * Populates the test suite with tests from the given XML context element.
104 InputSource inputSource, Element element) {
107 * Each context element has this structure:
119 String select = element.getAttribute("select");
123 xpath.setXPathVariableResolver(new ElementVariableResolver(element));
125 for (Element test : elementsOf(element.getChildNodes())) {
139 * Returns the test described by the given {@code <test>} element. Such
144 * <li>String matches. These tests have a nested {@code <valueOf>} element
151 final XPath xpath, final Context context, final Element element) {
152 final String select = element
103 contextToTestSuite(TestSuite suite, String url, InputSource inputSource, Element element) argument
150 createFromTest( final XPath xpath, final Context context, final Element element) argument
202 createFromValueOf( final XPath xpath, final Context context, final Element element) argument
287 private final Element element; field in class:JaxenXPathTestSuite.ElementVariableResolver
288 ElementVariableResolver(Element element) argument
[all...]
H A DNormalizeTest.java62 "element-content-whitespace", "comments", "namespaces" };
109 assertEquals(true, domConfiguration.getParameter("element-content-whitespace"));
110 assertUnsupported("element-content-whitespace", false);
111 assertSupported("element-content-whitespace", true);
569 private void assertChildren(Element element, String... texts) { argument
571 NodeList nodes = element.getChildNodes();
/libcore/luni/src/test/java/libcore/java/net/
H A DCookiesTest.java538 private void assertContains(Collection<String> collection, String element) { argument
540 if (c != null && c.equalsIgnoreCase(element)) {
544 fail("No " + element + " in " + collection);

Completed in 2936 milliseconds