/libcore/ojluni/src/main/java/java/lang/annotation/ |
H A D | AnnotationTypeMismatchException.java | 30 * Thrown to indicate that a program has attempted to access an element of 45 * The <tt>Method</tt> object for the annotation element. 47 private final Method element; field in class:AnnotationTypeMismatchException 58 * annotation type element and found data type. 60 * @param element the <tt>Method</tt> object for the annotation element 65 public AnnotationTypeMismatchException(Method element, String foundType) { argument 66 super("Incorrectly typed data found for annotation element " + element 68 this.element 77 public Method element() { method in class:AnnotationTypeMismatchException [all...] |
/libcore/luni/src/main/java/libcore/reflect/ |
H A D | AnnotatedElements.java | 40 * {@code element}, or an empty array if none were found. 43 AnnotatedElement element, Class<T> annotationClass) { 48 Annotation[] annotations = element.getDeclaredAnnotations(); 99 "annotation element class = " + annotationClass + "; missing value() method"); 107 "annotation element class = " + annotationClass + "; value() doesn't return array"); 113 "annotation element class = " + annotationClass + "; value() returns incorrect type"); 42 getDirectOrIndirectAnnotationsByType( AnnotatedElement element, Class<T> annotationClass) argument
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | AbstractQueue.java | 47 * {@link #element element} are based on {@link #offer offer}, {@link 75 * Inserts the specified element into this queue if it is possible to do so 83 * @param e the element to add 85 * @throws IllegalStateException if the element cannot be added at this 87 * @throws ClassCastException if the class of the specified element 89 * @throws NullPointerException if the specified element is null and 91 * @throws IllegalArgumentException if some property of this element 131 public E element() { method in class:AbstractQueue 159 * and adds each element returne [all...] |
H A D | Queue.java | 73 * <td>{@link Queue#element element()}</td> 84 * element which would be removed by a call to {@link #remove() } or 90 * <p>The {@link #offer offer} method inserts an element if possible, 93 * add an element only by throwing an unchecked exception. The 100 * Exactly which element is removed from the queue is a 107 * <p>The {@link #element()} and {@link #peek()} methods return, but do 125 * element-based versions of methods {@code equals} and 127 * from class {@code Object}, because element-based equality is not 137 * Inserts the specified element int 200 E element(); method in interface:Queue [all...] |
H A D | AbstractSequentialList.java | 37 * <tt>set(int index, E element)</tt>, <tt>add(int index, E element)</tt> and 78 * Returns the element at the specified position in this list. 81 * indexed element (with <tt>listIterator(index)</tt>). Then, it gets 82 * the element using <tt>ListIterator.next</tt> and returns it. 95 * Replaces the element at the specified position in this list with the 96 * specified element (optional operation). 99 * indexed element (with <tt>listIterator(index)</tt>). Then, it gets 100 * the current element using <tt>ListIterator.next</tt> and replaces it 113 public E set(int index, E element) { argument 144 add(int index, E element) argument [all...] |
H A D | Deque.java | 40 * A linear collection that supports element insertion and removal at 49 * examine the element. Each of these methods exists in two forms: 126 * <td>{@link java.util.Queue#element element()}</td> 181 * element-based versions of the {@code equals} and {@code hashCode} 194 * Inserts the specified element at the front of this deque if it is 200 * @param e the element to add 201 * @throws IllegalStateException if the element cannot be added at this 203 * @throws ClassCastException if the class of the specified element 205 * @throws NullPointerException if the specified element i 465 E element(); method in interface:Deque [all...] |
H A D | List.java | 32 * interface has precise control over where in the list each element is 59 * <tt>ListIterator</tt>, that allows element insertion and replacement, and 79 * add an ineligible element throws an unchecked exception, typically 81 * to query the presence of an ineligible element may throw an exception, 84 * operation on an ineligible element whose completion would not result in 85 * the insertion of an ineligible element into the list may throw an 131 * Returns <tt>true</tt> if this list contains the specified element. 133 * at least one element <tt>e</tt> such that 136 * @param o element whose presence in this list is to be tested 137 * @return <tt>true</tt> if this list contains the specified element 586 set(int index, E element) argument 607 add(int index, E element) argument [all...] |
H A D | AbstractList.java | 80 * Appends the specified element to the end of this list (optional 96 * @param e element to be appended to this list 100 * @throws ClassCastException if the class of the specified element 102 * @throws NullPointerException if the specified element is null and this 104 * @throws IllegalArgumentException if some property of this element 131 public E set(int index, E element) { argument 147 public void add(int index, E element) { argument 172 * specified element is found or the end of the list is reached. 196 * backwards over the list until the specified element is found, or the 332 * Index of element t 632 set(int index, E element) argument 649 add(int index, E element) argument [all...] |
H A D | ArrayDeque.java | 103 * The index of the element at the head of the deque (which is the 104 * element that would be removed by remove() or pop()); or an 110 * The index at which the next element would be added to the tail 188 * iterator. (The first element returned by the collection's 189 * iterator becomes the first element, or <i>front</i> of the 205 * Inserts the specified element at the front of this deque. 207 * @param e the element to add 208 * @throws NullPointerException if the specified element is null 219 * Inserts the specified element at the end of this deque. 223 * @param e the element t 456 public E element() { method in class:ArrayDeque [all...] |
H A D | Arrays.java | 177 * @param fromIndex the index of the first element, inclusive, to be sorted 178 * @param toIndex the index of the last element, exclusive, to be sorted 217 * @param fromIndex the index of the first element, inclusive, to be sorted 218 * @param toIndex the index of the last element, exclusive, to be sorted 257 * @param fromIndex the index of the first element, inclusive, to be sorted 258 * @param toIndex the index of the last element, exclusive, to be sorted 297 * @param fromIndex the index of the first element, inclusive, to be sorted 298 * @param toIndex the index of the last element, exclusive, to be sorted 337 * @param fromIndex the index of the first element, inclusive, to be sorted 338 * @param toIndex the index of the last element, exclusiv 3773 set(int index, E element) argument [all...] |
H A D | ArrayList.java | 52 * specified beyond the fact that adding an element has constant amortized 64 * resizes the backing array; merely setting the value of an element is not 137 * first element is added. 145 * will be expanded to DEFAULT_CAPACITY when the first element is added. 225 // any size if not default element table 305 * Returns <tt>true</tt> if this list contains the specified element. 307 * at least one element <tt>e</tt> such that 310 * @param o element whose presence in this list is to be tested 311 * @return <tt>true</tt> if this list contains the specified element 318 * Returns the index of the first occurrence of the specified element 451 set(int index, E element) argument 481 add(int index, E element) argument [all...] |
H A D | LinkedList.java | 44 * an element is not a structural modification.) This is typically 123 * Links e as first element. 138 * Links e as last element. 153 * Inserts element e before non-null Node succ. 173 final E element = f.item; 184 return element; 192 final E element = l.item; 203 return element; 211 final E element = x.item; 232 return element; 489 set(int index, E element) argument 506 add(int index, E element) argument 662 public E element() { method in class:LinkedList 975 Node(Node<E> prev, E element, Node<E> next) argument [all...] |
H A D | Vector.java | 92 * <p>Any array elements following the last element in the Vector are null. 358 * Returns {@code true} if this vector contains the specified element. 360 * contains at least one element {@code e} such that 363 * @param o element whose presence in this vector is to be tested 364 * @return {@code true} if this vector contains the specified element 371 * Returns the index of the first occurrence of the specified element 372 * in this vector, or -1 if this vector does not contain the element. 377 * @param o element to search for 378 * @return the index of the first occurrence of the specified element in 379 * this vector, or -1 if this vector does not contain the element 764 set(int index, E element) argument 813 add(int index, E element) argument [all...] |
/libcore/luni/src/test/java/libcore/xml/ |
H A D | JaxenXPathTestSuite.java | 101 * 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 D | NormalizeTest.java | 62 "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/ojluni/src/main/java/java/util/concurrent/ |
H A D | BlockingDeque.java | 48 * for the deque to become non-empty when retrieving an element, and wait for 49 * space to become available in the deque when storing an element. 183 * <td>{@link #element() element()}</td> 196 * actions subsequent to the access or removal of that element from 216 * Inserts the specified element at the front of this deque if it is 222 * @param e the element to add 225 * @throws NullPointerException if the specified element is null 231 * Inserts the specified element at the end of this deque if it is 237 * @param e the element t 578 E element(); method in interface:BlockingDeque [all...] |
H A D | CopyOnWriteArrayList.java | 85 * actions subsequent to the access or removal of that element from 182 * @param o element to search for 186 * @return index of element, or -1 if absent 204 * @param o element to search for 207 * @return index of element, or -1 if absent 223 * Returns {@code true} if this list contains the specified element. 225 * at least one element {@code e} such that {@code Objects.equals(o, e)}. 227 * @param o element whose presence in this list is to be tested 228 * @return {@code true} if this list contains the specified element 244 * Returns the index of the first occurrence of the specified element i 407 set(int index, E element) argument 449 add(int index, E element) argument 1217 set(int index, E element) argument 1242 add(int index, E element) argument [all...] |
H A D | ConcurrentLinkedDeque.java | 85 * actions subsequent to the access or removal of that element from 129 * A new element is added atomically by CASing the null prev or 131 * containing the element. The element's node atomically becomes 160 * the element from the collection, and makes the containing node 198 * the same element twice, but we don't guarantee whether a 233 * We believe (without full proof) that all single-element deque 349 * Links e as first element. 369 // for e to become an element of this deque, 381 * Links e as last element 1011 public E element() { return getFirst(); } method in class:ConcurrentLinkedDeque [all...] |
H A D | LinkedBlockingDeque.java | 215 * Links node as first element, or returns false if full. 234 * Links node as last element, or returns false if full. 253 * Removes and returns first element, or null if empty. 275 * Removes and returns last element, or null if empty. 623 * Inserts the specified element at the end of this deque unless it would 630 * @throws NullPointerException if the specified element is null 638 * @throws NullPointerException if the specified element is null 697 public E element() { method in class:LinkedBlockingDeque 712 * an element will succeed by inspecting {@code remainingCapacity} 714 * insert or remove an element [all...] |
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/ |
H A D | AnnotatedElementTestSupport.java | 95 * <p>Asserts that calling {@link AnnotatedElement#getAnnotations()} on the supplied element 107 AnnotatedElement element, Class<? extends Annotation>... expectedAnnotations) { 108 Set<Class<? extends Annotation>> actualTypes = annotationsToTypes(element.getAnnotations()); 113 assertPresent(expectedTypes.contains(AnnotationA.class), element, AnnotationA.class); 114 assertPresent(expectedTypes.contains(AnnotationB.class), element, AnnotationB.class); 115 assertPresent(expectedTypes.contains(AnnotationC.class), element, AnnotationC.class); 116 assertPresent(expectedTypes.contains(AnnotationD.class), element, AnnotationD.class); 119 element.isAnnotationPresent(null); 125 element.getAnnotation(null); 135 * element return 106 checkAnnotatedElementPresentMethods( AnnotatedElement element, Class<? extends Annotation>... expectedAnnotations) argument 144 checkAnnotatedElementDirectMethods( AnnotatedElement element, Class<? extends Annotation>... expectedDeclaredAnnotations) argument 174 assertPresent(boolean present, AnnotatedElement element, Class<? extends Annotation> annotation) argument 185 assertDeclared(boolean present, AnnotatedElement element, Class<? extends Annotation> annotation) argument 202 assertIsAnnotationPresent( AnnotatedElement element, Class<? extends Annotation> annotationType, boolean expected) argument [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | SpliteratorsTest.java | 165 public void add(int element) { argument 166 array[idx++] = element; 183 public void add(long element) { argument 184 array[idx++] = element; 201 public void add(double element) { argument 202 array[idx++] = element;
|
H A D | LocaleTest.java | 213 private static void assertOnce(Locale element, Locale[] array) { argument 216 if (l.equals(element)) {
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | ConcurrentSkipListSetTest.java | 181 * Add of comparable element succeeds 190 * Add of duplicate element fails 382 * lower returns preceding element 400 * higher returns next element 418 * floor returns preceding element 436 * ceiling returns next element 497 * iterator.remove removes current element 707 int element = rnd.nextInt(limit); 708 put(set, element, bs); 731 int element 769 put(NavigableSet<Integer> set, int element, BitSet bs) argument 774 remove(NavigableSet<Integer> set, int element, BitSet bs) argument [all...] |
H A D | TreeSetTest.java | 185 * Add of comparable element succeeds 194 * Add of duplicate element fails 386 * lower returns preceding element 404 * higher returns next element 422 * floor returns preceding element 440 * ceiling returns next element 500 * iterator.remove removes current element 711 int element = rnd.nextInt(limit); 712 put(set, element); 735 int element 772 put(NavigableSet<Integer> set, int element) argument 777 remove(NavigableSet<Integer> set, int element) argument [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | AbstractCookiesTest.java | 734 private void assertContains(Collection<String> collection, String element) { argument 736 if (c != null && c.equalsIgnoreCase(element)) { 740 fail("No " + element + " in " + collection);
|