Codota Logo
jodd.util.collection
Code IndexAdd Codota to your IDE (free)

How to use jodd.util.collection

Best Java code snippets using jodd.util.collection (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: redisson/redisson

/**
 * Returns a list iterator over the elements in this list (in proper
 * sequence), starting at the specified position in the list.
 */
@Override
public ListIterator<E> listIterator(int index) {
  rangeCheck(index);
  return new ListItr(index);
}
origin: redisson/redisson

/**
 * Creates new composite iterator with provided iterators.
 */
public CompositeIterator(Iterator<T>... iterators) {
  for (Iterator<T> iterator : iterators) {
    add(iterator);
  }
}
origin: redisson/redisson

/**
 * Creates new composite enumeration with provided enumerations.
 */
public CompositeEnumeration(Enumeration<T>... enumerations) {
  for (Enumeration<T> enumeration : enumerations) {
    add(enumeration);
  }
}
origin: redisson/redisson

  @Override
  public void clear() {
    IntHashMap.this.clear();
  }
};
origin: redisson/redisson

  public Object setValue(Object obj) {
    setAttribute(key, obj);
    return value;
  }
});
origin: redisson/redisson

/**
 * Inserts all array elements to this list.
 */
public boolean addAll(int index, E... array) {
  rangeCheck(index);
  return doAddAll(index, array);
}
origin: redisson/redisson

/**
 * Removes from this list all of its elements that are contained in the
 * specified collection.
 */
@Override
public boolean removeAll(Collection<?> c) {
  return batchRemove(c, false);
}
origin: redisson/redisson

/**
 * Removes last element of the list.
 */
public E removeLast() {
  return remove(size - 1);
}
origin: redisson/redisson

/**
 * Appends element to the list.
 */
public boolean addLast(E e) {
  return add(e);
}
origin: redisson/redisson

/**
 * Returns the element at the specified position in this list.
 */
public int get(int index) {
  checkRange(index);
  return array[index];
}
origin: redisson/redisson

/**
 * Returns a value associated to a key in thread-safe way.
 */
public synchronized V get(Class key) {
  return unsafeGet(key);
}
origin: redisson/redisson

/**
 * Appends the specified element to the end of this list.
 */
public void add(int element) {
  ensureCapacity(size + 1);
  array[size++] = element;
}
origin: redisson/redisson

/**
 * Appends all elements of given array.
 */
public boolean addAll(E... array) {
  if (array.length == 0) {
    return false;
  }
  return doAddAll(array);
}
origin: redisson/redisson

/**
 * Constructs an empty list with the specified initial capacity.
 */
public JoddArrayList(int initialCapacity) {
  init(initialCapacity);
}
origin: redisson/redisson

/**
 * Returns <code>true</code> if this list contains the specified element.
 */
@Override
public boolean contains(Object o) {
  return indexOf(o) >= 0;
}
origin: redisson/redisson

/**
 * Returns a list iterator over the elements in this list (in proper
 * sequence).
 * @see #listIterator(int)
 */
@Override
public ListIterator<E> listIterator() {
  return new ListItr(0);
}
origin: redisson/redisson

/**
 * Returns the element at the specified position in this list.
 */
@Override
@SuppressWarnings("unchecked")
public E get(int index) {
  rangeCheck(index);
  return (E) buffer[start + index];
}
origin: redisson/redisson

  @Override
  public void clear() {
    IntHashMap.this.clear();
  }
};
origin: redisson/redisson

/**
 * Retains only the elements in this list that are contained in the
 * specified collection.  In other words, removes from this list all
 * of its elements that are not contained in the specified collection.
 */
@Override
public boolean retainAll(Collection<?> c) {
  return batchRemove(c, true);
}
origin: redisson/redisson

/**
 * Removes first element of the list.
 */
public E removeFirst() {
  return remove(0);
}
jodd.util.collection

Most used classes

  • IntHashMap
    A Map that accepts int or Integer keys only. The implementation is based on java.util.HashMap. IntHa
  • SortedArrayList
    An extension of ArrayList that insures that all of the items added are sorted. This breaks original
  • CompositeEnumeration
    Enumeration that combines multiple enumerations.
  • CompositeIterator
    Iterator that combines multiple iterators.
  • IntHashMap$Entry
    IntHashMap collision list entry.
  • MapEntry,
  • StringKeyedMapAdapter,
  • IntArrayList,
  • ClassMap$Entry,
  • ClassMap,
  • JoddArrayList$Itr,
  • JoddArrayList$ListItr,
  • JoddArrayList$PIVOT_TYPE,
  • JoddArrayList,
  • UnmodifiableMapEntry,
  • ArrayEnumeration,
  • ArrayIterator,
  • CharArrayList,
  • CompositeEnumerationTest
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now