Codota Logo
org.apache.wicket.util.collections
Code IndexAdd Codota to your IDE (free)

How to use org.apache.wicket.util.collections

Best Java code snippets using org.apache.wicket.util.collections (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: org.apache.wicket/wicket-util

void putAllForCreate(final IntHashMap<V> m)
{
  for (Entry<V> entry : m.entrySet())
  {
    putForCreate(entry.getKey(), entry.getValue());
  }
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * @see java.util.AbstractCollection#contains(java.lang.Object)
 */
public boolean contains(Object o)
{
  if (!(o instanceof Entry))
  {
    return false;
  }
  Entry e = (Entry)o;
  Entry candidate = getEntry(e.getKey());
  return candidate != null && candidate.equals(e);
}
origin: apache/wicket

/**
 * 
 * @param pageId
 */
private void removeWindowIndex(int pageId)
{
  Integer windowIndex = idToWindowIndex.remove(pageId);
  if (windowIndex != null)
  {
    windowIndexToPageId.remove(windowIndex);
  }
}
origin: org.apache.wicket/wicket-util

  /**
   * @see java.lang.Object#toString()
   */
  @Override
  public String toString()
  {
    return getKey() + "=" + getValue(); //$NON-NLS-1$
  }
}
origin: org.apache.wicket/wicket-util

/**
 * @see java.util.Map#isEmpty()
 */
@Override
public boolean isEmpty()
{
  return size() == 0;
}
origin: org.apache.wicket/wicket-util

@Override
public String name(int value)
{
  return mapValueToName.get(value);
}
origin: org.apache.wicket/wicket-util

/**
 * @see java.util.Map#containsKey(java.lang.Object)
 */
@Override
public boolean containsKey(final Object key)
{
  return findKey(0, key) != -1;
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * @see IPageVersionManager#getVersions()
 */
public int getVersions()
{
  return changeListStack.size();
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * Constructs an empty <tt>HashMap</tt> with the default initial capacity (16) and the default
 * load factor (0.75).
 */
@SuppressWarnings("unchecked")
public IntHashMap()
{
  loadFactor = DEFAULT_LOAD_FACTOR;
  threshold = (int)(DEFAULT_INITIAL_CAPACITY * DEFAULT_LOAD_FACTOR);
  table = new Entry[DEFAULT_INITIAL_CAPACITY];
  init();
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * Constructs map with a single key and value pair.
 * 
 * @param key
 *            The key
 * @param value
 *            The value
 */
public MicroMap(final K key, final V value)
{
  put(key, value);
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * @see IPageVersionManager#expireOldestVersion()
 */
public void expireOldestVersion()
{
  changeListStack.remove(0);
}
origin: apache/wicket

@Override
public BufferedWebResponse remove(Object key)
{
  Value removedValue;
  synchronized (this)
  {
    removedValue = (Value)super.remove(key);
  }
  return removedValue != null ? removedValue.response : null;
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * @see java.util.AbstractCollection#remove(java.lang.Object)
 */
public boolean remove(Object o)
{
  return removeMapping(o) != null;
}
origin: org.apache.wicket/wicket-util

  @Override
  public int size()
  {
    return MicroMap.this.size();
  }
};
origin: org.apache.wicket/wicket-core

/**
 * 
 * @param pageId
 */
private void removeWindowIndex(int pageId)
{
  Integer windowIndex = idToWindowIndex.remove(pageId);
  if (windowIndex != null)
  {
    windowIndexToPageId.remove(windowIndex);
  }
}
origin: org.apache.wicket/wicket-core

@Override
public BufferedWebResponse remove(Object key)
{
  Value removedValue;
  synchronized (this)
  {
    removedValue = (Value)super.remove(key);
  }
  return removedValue != null ? removedValue.response : null;
}
origin: org.apache.wicket/wicket-util

  @Override
  public int size()
  {
    return MicroMap.this.size();
  }
};
origin: org.ops4j.pax.wicket/pax-wicket-service

  @Override
  public int size()
  {
    return MicroMap.this.size();
  }
};
origin: org.ops4j.pax.wicket/pax-wicket-service

  @Override
  public int size()
  {
    return MicroMap.this.size();
  }
};
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * @return True if this MicroMap is full
 */
public boolean isFull()
{
  return size() == MAX_ENTRIES;
}
org.apache.wicket.util.collections

Most used classes

  • MiniMap
  • ClassMetaCache
  • MicroMap
  • ArrayListStack
    A faster, smaller stack implementation. ArrayListStack is final and unsynchronized (the JDK's method
  • ConcurrentHashSet
  • MostRecentlyUsedMap,
  • IntHashMap$Entry,
  • IntHashMap$EntryIterator,
  • IntHashMap$EntrySet,
  • IntHashMap$KeyIterator,
  • IntHashMap$KeySet,
  • IntHashMap$ValueIterator,
  • IntHashMap$Values,
  • MicroMap$2,
  • MultiMap,
  • ReverseListIterator,
  • UrlExternalFormComparator
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