/** * Get an iterator over this principal. * * @return an iterator over this principal (not {@code null}) */ public Iterator<Principal> iterator() { return new ArrayIterator<Principal>(p); }
/** * Get the next element in the direction of this iterator. * * @return the next element */ public E next() { if (! hasNext()) throw new NoSuchElementException(); return elements[descending ? -- idx : idx ++]; }
/** * Get the next element in the reverse direction of this iterator. * * @return the next element */ public E previous() { if (! hasPrevious()) throw new NoSuchElementException(); return elements[descending ? idx ++ : -- idx]; }
public Enumeration<Permission> elements() { return new ArrayIterator<Permission>(permissionsRef.get()); } }
/** * Get the next element in the reverse direction of this iterator. * * @return the next element */ public E previous() { if (! hasPrevious()) throw new NoSuchElementException(); return elements[descending ? idx ++ : -- idx]; }
/** * Get the next element in the direction of this iterator. * * @return the next element */ public E next() { if (! hasNext()) throw new NoSuchElementException(); return elements[descending ? -- idx : idx ++]; }
public Enumeration<Permission> elements() { return new ArrayIterator<Permission>(permissionsRef.get()); } }
/** * Get the next element in the reverse direction of this iterator. * * @return the next element */ public E previous() { if (! hasPrevious()) throw new NoSuchElementException(); return elements[descending ? idx ++ : -- idx]; }
/** * Get the next element in the direction of this iterator. * * @return the next element */ public E next() { if (! hasNext()) throw new NoSuchElementException(); return elements[descending ? -- idx : idx ++]; }
public Iterator<Permission> iterator() { return new ArrayIterator<Permission>(permissionsRef.get()); }
/** * Get the next element in the reverse direction of this iterator. * * @return the next element */ public E previous() { if (! hasPrevious()) throw new NoSuchElementException(); return elements[descending ? idx ++ : -- idx]; }
/** * Get the next element in the direction of this iterator. * * @return the next element */ public E next() { if (! hasNext()) throw new NoSuchElementException(); return elements[descending ? -- idx : idx ++]; }
public Iterator<Permission> iterator() { return new ArrayIterator<Permission>(permissionsRef.get()); }
/** * Get an iterator over this principal. * * @return an iterator over this principal (not {@code null}) */ public Iterator<Principal> iterator() { return new ArrayIterator<Principal>(p); }
/** * Get an iterator over this principal. * * @return an iterator over this principal (not {@code null}) */ public Iterator<Principal> iterator() { return new ArrayIterator<Principal>(p); }
/** * Get an iterator over this principal. * * @return an iterator over this principal (not {@code null}) */ public Iterator<Principal> iterator() { return new ArrayIterator<Principal>(p); }
public Enumeration<Permission> elements() { return new ArrayIterator<Permission>(permissionsRef.get()); } }
public Enumeration<Permission> elements() { return new ArrayIterator<Permission>(permissionsRef.get()); } }
public Iterator<Permission> iterator() { return new ArrayIterator<Permission>(permissionsRef.get()); }
public Enumeration<Permission> elements() { return new ArrayIterator<Permission>(permissionsRef.get()); } }