congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
LinkedList.clear
Code IndexAdd Tabnine to your IDE (free)

How to use
clear
method
in
org.drools.core.util.LinkedList

Best Java code snippets using org.drools.core.util.LinkedList.clear (Showing top 3 results out of 315)

origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public void clear() {
  this.list.clear();
  this.active = false;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

public void clear() {
  this.list.clear();
}
origin: org.drools/drools-core

@Test
public void testClear() {
  this.list.add( this.node1 );
  this.list.add( this.node2 );
  this.list.add( this.node3 );
  assertEquals( "List size should be 3",
             this.list.size(),
             3 );
  this.list.clear();
  assertEquals( "Empty list should have size 0",
             this.list.size(),
             0 );
}
org.drools.core.utilLinkedListclear

Javadoc

Iterates the list removing all the nodes until there are no more nodes to remove.

Popular methods of LinkedList

  • getFirst
    Return the first node in the list
  • size
  • <init>
    Construct an empty LinkedList
  • add
    Add a LinkedListNode to the list. If the LinkedList is empty then the first and last nodes are set t
  • isEmpty
  • remove
    Removes a LinkedListNode from the list. This works by attach the previous reference to the child ref
  • removeFirst
    Remove the first node from the list. The next node then becomes the first node. If this is the last
  • removeLast
    Remove the last node from the list. The previous node then becomes the last node. If this is the las
  • get
  • getLast
    Return the last node in the list
  • insertAfter
  • iterator
  • insertAfter,
  • iterator,
  • javaUtilIterator

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSystemService (Context)
  • getApplicationContext (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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