Tabnine Logo
ArrayListStack.size
Code IndexAdd Tabnine 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)

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

  • Reading from database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • getApplicationContext (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now