Codota Logo
ArrayListStack.size
Code IndexAdd Codota to your IDE (free)

How to use
size
method
in
org.apache.wicket.util.collections.ArrayListStack

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

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

/**
 * Tests if this stack is empty.
 * 
 * @return <code>true</code> if and only if this stack contains no items; <code>false</code>
 *         otherwise.
 */
public final boolean empty()
{
  return size() == 0;
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * Tests if this stack is empty.
 * 
 * @return <code>true</code> if and only if this stack contains no items; <code>false</code>
 *         otherwise.
 */
public final boolean empty()
{
  return size() == 0;
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * @return Number of page versions stored in this page map
 */
public final int getVersions()
{
  return accessStack.size();
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * @see IPageVersionManager#getVersions()
 */
public int getVersions()
{
  return changeListStack.size();
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

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

/**
 * @return Number of page versions stored in this page map
 */
public final int getVersions()
{
  return accessStack.size();
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * Tests if this stack is empty.
 * 
 * @return <code>true</code> if and only if this stack contains no items; <code>false</code>
 *         otherwise.
 */
public final boolean empty()
{
  return size() == 0;
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * Looks at the object at the top of this stack without removing it.
 * 
 * @return The object at the top of this stack
 * @exception EmptyStackException
 *                If this stack is empty.
 */
public final Object peek()
{
  int size = size();
  if (size == 0)
  {
    throw new EmptyStackException();
  }
  return get(size - 1);
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * Looks at the object at the top of this stack without removing it.
 * 
 * @return The object at the top of this stack
 * @exception EmptyStackException
 *                If this stack is empty.
 */
public final T peek()
{
  int size = size();
  if (size == 0)
  {
    throw new EmptyStackException();
  }
  return get(size - 1);
}
origin: org.apache.wicket/wicket-util

/**
 * Looks at the object at the top of this stack without removing it.
 * 
 * @return The object at the top of this stack
 * @exception EmptyStackException
 *                If this stack is empty.
 */
public final T peek()
{
  int size = size();
  if (size == 0)
  {
    throw new EmptyStackException();
  }
  return get(size - 1);
}
origin: org.apache.wicket/wicket-util

  /**
   * Returns the 1-based position where an object is on this stack. If the object <tt>o</tt>
   * occurs as an item in this stack, this method returns the distance from the top of the stack
   * of the occurrence nearest the top of the stack; the topmost item on the stack is considered
   * to be at distance <tt>1</tt>. The <tt>equals</tt> method is used to compare <tt>o</tt> to the
   * items in this stack.
   * 
   * @param o
   *            the desired object.
   * @return the 1-based position from the top of the stack where the object is located; the
   *         return value <code>-1</code> indicates that the object is not on the stack.
   */
  public final int search(final T o)
  {
    int i = lastIndexOf(o);
    if (i >= 0)
    {
      return size() - i;
    }
    return -1;
  }
}
origin: org.ops4j.pax.wicket/pax-wicket-service

  /**
   * Returns the 1-based position where an object is on this stack. If the object <tt>o</tt>
   * occurs as an item in this stack, this method returns the distance from the top of the stack
   * of the occurrence nearest the top of the stack; the topmost item on the stack is considered
   * to be at distance <tt>1</tt>. The <tt>equals</tt> method is used to compare <tt>o</tt> to the
   * items in this stack.
   * 
   * @param o
   *            the desired object.
   * @return the 1-based position from the top of the stack where the object is located; the
   *         return value <code>-1</code> indicates that the object is not on the stack.
   */
  public final int search(final T o)
  {
    int i = lastIndexOf(o);
    if (i >= 0)
    {
      return size() - i;
    }
    return -1;
  }
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

  /**
   * Returns the 1-based position where an object is on this stack. If the object <tt>o</tt>
   * occurs as an item in this stack, this method returns the distance from the top of the stack
   * of the occurrence nearest the top of the stack; the topmost item on the stack is considered
   * to be at distance <tt>1</tt>. The <tt>equals</tt> method is used to compare <tt>o</tt>
   * to the items in this stack.
   * 
   * @param o
   *            the desired object.
   * @return the 1-based position from the top of the stack where the object is located; the
   *         return value <code>-1</code> indicates that the object is not on the stack.
   */
  public final int search(final Object o)
  {
    int i = lastIndexOf(o);
    if (i >= 0)
    {
      return size() - i;
    }
    return -1;
  }
}
origin: org.apache.wicket/wicket-util

/**
 * Removes the object at the top of this stack and returns that object.
 * 
 * @return The object at the top of this stack
 * @exception EmptyStackException
 *                If this stack is empty.
 */
public final T pop()
{
  final T top = peek();
  remove(size() - 1);
  return top;
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * Removes the object at the top of this stack and returns that object.
 * 
 * @return The object at the top of this stack
 * @exception EmptyStackException
 *                If this stack is empty.
 */
public final T pop()
{
  final T top = peek();
  remove(size() - 1);
  return top;
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * Removes the object at the top of this stack and returns that object.
 * 
 * @return The object at the top of this stack
 * @exception EmptyStackException
 *                If this stack is empty.
 */
public final Object pop()
{
  final Object top = peek();
  remove(size() - 1);
  return top;
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

if (changeListStack.size() > 0)
origin: org.ops4j.pax.wicket/pax-wicket-service

if (changeListStack.size() > 0)
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * @param entry
 *            Entry that was accessed
 */
private final void pushAccess(IPageMapEntry entry)
{
  // Create new access entry
  final Access access = new Access();
  access.id = entry.getNumericId();
  access.version = versionOf(entry);
  if (accessStack.size() > 0)
  {
    if (peekAccess().equals(access))
    {
      return;
    }
    int index = accessStack.indexOf(access);
    if (index >= 0)
    {
      accessStack.remove(index);
    }
  }
  accessStack.push(access);
  dirty();
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * @param entry
 *            Entry that was accessed
 */
private final void pushAccess(IPageMapEntry entry)
{
  // Create new access entry
  final Access access = new Access();
  access.id = entry.getNumericId();
  access.version = versionOf(entry);
  if (accessStack.size() > 0)
  {
    if (peekAccess().equals(access))
    {
      return;
    }
    int index = accessStack.indexOf(access);
    if (index >= 0)
    {
      accessStack.remove(index);
    }
  }
  accessStack.push(access);
  dirty();
}
org.apache.wicket.util.collectionsArrayListStacksize

Popular methods of ArrayListStack

  • <init>
    Construct.
  • add
  • get
  • isEmpty
  • lastIndexOf
  • peek
    Looks at the object at the top of this stack without removing it.
  • pop
    Removes the object at the top of this stack and returns that object.
  • push
    Pushes an item onto the top of this stack.
  • remove
  • clear
  • indexOf
  • iterator
  • indexOf,
  • iterator,
  • trimToSize,
  • addAll

Popular in Java

  • Making http post requests using okhttp
  • putExtra (Intent)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
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