test_class.declarator: logger = LoggerFactory.getLogger(RoundRobinLoadBalancedListTest.class)
test_class.modifier: private static final
test_class.original_string: private static final Logger logger = LoggerFactory.getLogger(RoundRobinLoadBalancedListTest.class);
test_class.type: Logger
test_class.var_name: logger
test_class.file: ch-commons-util/src/test/java/com/cloudhopper/commons/util/RoundRobinLoadBalancedListTest.java
test_class.identifier: RoundRobinLoadBalancedListTest
test_case.body: @Test
      public void clear() throws Exception {
          RoundRobinLoadBalancedList<String> list = new RoundRobinLoadBalancedList<String>();
  
          // add two items
          list.set("Item1", 1);
          list.set("Item2", 1);
  
          logger.debug("Initial list: " + list.toString());
  
          Assert.assertEquals(2, list.getRemainingSize());
          Assert.assertEquals("Item1", list.getNext());
          Assert.assertEquals("Item2", list.getNext());
  
          Assert.assertEquals(2, list.getSize());
          Assert.assertEquals(2, list.getRemainingSize());
  
          // clear it
          list.clear();
  
          Assert.assertEquals(0, list.getSize());
          Assert.assertEquals(0, list.getRemainingSize());
          Assert.assertEquals(null, list.getNext());
      }
test_case.class_method_signature: RoundRobinLoadBalancedListTest.clear()
test_case.full_signature: @Test public void clear()
test_case.identifier: clear
test_case.invocations: set set debug toString assertEquals getRemainingSize assertEquals getNext assertEquals getNext assertEquals getSize assertEquals getRemainingSize clear assertEquals getSize assertEquals getRemainingSize assertEquals getNext
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void clear()
focal_class.declarator: logger = LoggerFactory.getLogger(RoundRobinLoadBalancedList.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(RoundRobinLoadBalancedList.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: allItems
focal_class.modifier: private final
focal_class.original_string: private final ArrayList<Node<E>> allItems;
focal_class.type: ArrayList<Node<E>>
focal_class.var_name: allItems
focal_class.declarator: remainingItems
focal_class.modifier: private final
focal_class.original_string: private final ArrayList<Node<E>> remainingItems;
focal_class.type: ArrayList<Node<E>>
focal_class.var_name: remainingItems
focal_class.declarator: currentIndex
focal_class.modifier: private
focal_class.original_string: private int currentIndex;
focal_class.type: int
focal_class.var_name: currentIndex
focal_class.file: ch-commons-util/src/main/java/com/cloudhopper/commons/util/RoundRobinLoadBalancedList.java
focal_class.identifier: RoundRobinLoadBalancedList
focal_class.interfaces: implements LoadBalancedList<E>
focal_class.class_method_signature: RoundRobinLoadBalancedList.RoundRobinLoadBalancedList()
focal_class.full_signature: public  RoundRobinLoadBalancedList()
focal_class.identifier: RoundRobinLoadBalancedList
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  RoundRobinLoadBalancedList()
focal_class.class_method_signature: RoundRobinLoadBalancedList.getValues()
focal_class.full_signature: @Override public List<Node<E>> getValues()
focal_class.identifier: getValues
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<Node<E>>
focal_class.signature: List<Node<E>> getValues()
focal_class.class_method_signature: RoundRobinLoadBalancedList.clear()
focal_class.full_signature: @Override public void clear()
focal_class.identifier: clear
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clear()
focal_class.class_method_signature: RoundRobinLoadBalancedList.contains(E item)
focal_class.full_signature: @Override public boolean contains(E item)
focal_class.identifier: contains
focal_class.modifiers: @Override public
focal_class.parameters: (E item)
focal_class.return: boolean
focal_class.signature: boolean contains(E item)
focal_class.class_method_signature: RoundRobinLoadBalancedList.set(E item, int weight)
focal_class.full_signature: @Override public void set(E item, int weight)
focal_class.identifier: set
focal_class.modifiers: @Override public
focal_class.parameters: (E item, int weight)
focal_class.return: void
focal_class.signature: void set(E item, int weight)
focal_class.class_method_signature: RoundRobinLoadBalancedList.remove(E item)
focal_class.full_signature: @Override public void remove(E item)
focal_class.identifier: remove
focal_class.modifiers: @Override public
focal_class.parameters: (E item)
focal_class.return: void
focal_class.signature: void remove(E item)
focal_class.class_method_signature: RoundRobinLoadBalancedList.rebuildRemainingItems()
focal_class.full_signature: protected void rebuildRemainingItems()
focal_class.identifier: rebuildRemainingItems
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void rebuildRemainingItems()
focal_class.class_method_signature: RoundRobinLoadBalancedList.resetCountsAndRebuildRemainingItems()
focal_class.full_signature: protected void resetCountsAndRebuildRemainingItems()
focal_class.identifier: resetCountsAndRebuildRemainingItems
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void resetCountsAndRebuildRemainingItems()
focal_class.class_method_signature: RoundRobinLoadBalancedList.getSize()
focal_class.full_signature: @Override public int getSize()
focal_class.identifier: getSize
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getSize()
focal_class.class_method_signature: RoundRobinLoadBalancedList.getRemainingSize()
focal_class.full_signature: public int getRemainingSize()
focal_class.identifier: getRemainingSize
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getRemainingSize()
focal_class.class_method_signature: RoundRobinLoadBalancedList.getNext()
focal_class.full_signature: @Override public E getNext()
focal_class.identifier: getNext
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: E
focal_class.signature: E getNext()
focal_class.class_method_signature: RoundRobinLoadBalancedList.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: @Override
      public void clear() {
          // remove all items from allitems
          allItems.clear();
          remainingItems.clear();
          this.currentIndex = 0;
      }
focal_method.class_method_signature: RoundRobinLoadBalancedList.clear()
focal_method.full_signature: @Override public void clear()
focal_method.identifier: clear
focal_method.invocations: clear clear
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void clear()