Tabnine Logo
AbstractTestCollection.getFullNonNullElements
Code IndexAdd Tabnine to your IDE (free)

How to use
getFullNonNullElements
method
in
org.apache.commons.collections.collection.AbstractTestCollection

Best Java code snippets using org.apache.commons.collections.collection.AbstractTestCollection.getFullNonNullElements (Showing top 1 results out of 315)

origin: commons-collections/commons-collections

/**
 *  Returns an array of objects that are contained in a collection
 *  produced by {@link #makeFullCollection()}.  Every element in the
 *  returned array <I>must</I> be an element in a full collection.<P>
 *  The default implementation returns a heterogenous array of 
 *  objects with some duplicates. null is added if allowed.
 *  Override if you require specific testing elements.  Note that if you
 *  override {@link #makeFullCollection()}, you <I>must</I> override
 *  this method to reflect the contents of a full collection.
 */
public Object[] getFullElements() {
  if (isNullSupported()) {
    ArrayList list = new ArrayList();
    list.addAll(Arrays.asList(getFullNonNullElements()));
    list.add(4, null);
    return list.toArray();
  } else {
    return (Object[]) getFullNonNullElements().clone();
  }
}
org.apache.commons.collections.collectionAbstractTestCollectiongetFullNonNullElements

Javadoc

Returns a list of elements suitable for return by #getFullElements(). The array returned by this method does not include null, but does include a variety of objects of different types. Override getFullElements to return the results of this method if your collection does not support the null element.

Popular methods of AbstractTestCollection

  • areEqualElementsDistinguishable
    Specifies whether equal elements in the collection are, in fact, distinguishable with information no
  • assertEquals
  • assertTrue
  • cloneMapEntry
    Creates a new Map Entry that is independent of the first and the map.
  • fail
  • getFullElements
    Returns an array of objects that are contained in a collection produced by #makeFullCollection(). Ev
  • getOtherElements
    Returns an array of elements that are not contained in a full collection. Every element in the retur
  • getOtherNonNullElements
    Returns the default list of objects returned by #getOtherElements(). Includes many objects of differ
  • isAddSupported
    Returns true if the collections produced by #makeCollection() and #makeFullCollection()support the a
  • isEqualsCheckable
    Returns true to indicate that the collection supports equals() comparisons. This implementation retu
  • isFailFastSupported
    Returns true to indicate that the collection supports fail fast iterators. The default implementatio
  • isNullSupported
    Returns true to indicate that the collection supports holding null. The default implementation retur
  • isFailFastSupported,
  • isNullSupported,
  • isRemoveSupported,
  • isTestSerialization,
  • makeCollection,
  • makeConfirmedCollection,
  • makeConfirmedFullCollection,
  • makeFullCollection,
  • resetEmpty

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (Timer)
  • findViewById (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top Vim 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