test_class.file: tool/group/src/test/java/org/openscience/cdk/group/PartitionTest.java
test_class.identifier: PartitionTest
test_class.superclass: extends CDKTestCase
test_case.body: @Test
      public void orderTest() {
          Partition p = new Partition(new int[][]{{1, 3}, {0, 2}});
          p.order();
          SortedSet<Integer> cell0 = p.getCell(0);
          SortedSet<Integer> cell1 = p.getCell(1);
          Assert.assertTrue(cell0.first() < cell1.first());
          Assert.assertTrue(cell0.last() < cell1.last());
      }
test_case.class_method_signature: PartitionTest.orderTest()
test_case.full_signature: @Test public void orderTest()
test_case.identifier: orderTest
test_case.invocations: order getCell getCell assertTrue first first assertTrue last last
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void orderTest()
focal_class.declarator: cells
focal_class.modifier: private
focal_class.original_string: private List<SortedSet<Integer>> cells;
focal_class.type: List<SortedSet<Integer>>
focal_class.var_name: cells
focal_class.file: tool/group/src/main/java/org/openscience/cdk/group/Partition.java
focal_class.identifier: Partition
focal_class.class_method_signature: Partition.Partition()
focal_class.full_signature: public  Partition()
focal_class.identifier: Partition
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  Partition()
focal_class.class_method_signature: Partition.Partition(Partition other)
focal_class.full_signature: public  Partition(Partition other)
focal_class.identifier: Partition
focal_class.modifiers: public
focal_class.parameters: (Partition other)
focal_class.signature:  Partition(Partition other)
focal_class.class_method_signature: Partition.Partition(int[][] cellData)
focal_class.full_signature: public  Partition(int[][] cellData)
focal_class.identifier: Partition
focal_class.modifiers: public
focal_class.parameters: (int[][] cellData)
focal_class.signature:  Partition(int[][] cellData)
focal_class.class_method_signature: Partition.unit(int size)
focal_class.full_signature: public static Partition unit(int size)
focal_class.identifier: unit
focal_class.modifiers: public static
focal_class.parameters: (int size)
focal_class.return: Partition
focal_class.signature: Partition unit(int size)
focal_class.class_method_signature: Partition.equals(Object o)
focal_class.full_signature: @Override public boolean equals(Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(Object o)
focal_class.class_method_signature: Partition.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: Partition.size()
focal_class.full_signature: public int size()
focal_class.identifier: size
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int size()
focal_class.class_method_signature: Partition.numberOfElements()
focal_class.full_signature: public int numberOfElements()
focal_class.identifier: numberOfElements
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int numberOfElements()
focal_class.class_method_signature: Partition.isDiscrete()
focal_class.full_signature: public boolean isDiscrete()
focal_class.identifier: isDiscrete
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isDiscrete()
focal_class.class_method_signature: Partition.toPermutation()
focal_class.full_signature: public Permutation toPermutation()
focal_class.identifier: toPermutation
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Permutation
focal_class.signature: Permutation toPermutation()
focal_class.class_method_signature: Partition.inOrder()
focal_class.full_signature: public boolean inOrder()
focal_class.identifier: inOrder
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean inOrder()
focal_class.class_method_signature: Partition.getFirstInCell(int cellIndex)
focal_class.full_signature: public int getFirstInCell(int cellIndex)
focal_class.identifier: getFirstInCell
focal_class.modifiers: public
focal_class.parameters: (int cellIndex)
focal_class.return: int
focal_class.signature: int getFirstInCell(int cellIndex)
focal_class.class_method_signature: Partition.getCell(int cellIndex)
focal_class.full_signature: public SortedSet<Integer> getCell(int cellIndex)
focal_class.identifier: getCell
focal_class.modifiers: public
focal_class.parameters: (int cellIndex)
focal_class.return: SortedSet<Integer>
focal_class.signature: SortedSet<Integer> getCell(int cellIndex)
focal_class.class_method_signature: Partition.splitBefore(int cellIndex, int splitElement)
focal_class.full_signature: public Partition splitBefore(int cellIndex, int splitElement)
focal_class.identifier: splitBefore
focal_class.modifiers: public
focal_class.parameters: (int cellIndex, int splitElement)
focal_class.return: Partition
focal_class.signature: Partition splitBefore(int cellIndex, int splitElement)
focal_class.class_method_signature: Partition.splitAfter(int cellIndex, int splitElement)
focal_class.full_signature: public Partition splitAfter(int cellIndex, int splitElement)
focal_class.identifier: splitAfter
focal_class.modifiers: public
focal_class.parameters: (int cellIndex, int splitElement)
focal_class.return: Partition
focal_class.signature: Partition splitAfter(int cellIndex, int splitElement)
focal_class.class_method_signature: Partition.setAsPermutation(int upTo)
focal_class.full_signature: public Permutation setAsPermutation(int upTo)
focal_class.identifier: setAsPermutation
focal_class.modifiers: public
focal_class.parameters: (int upTo)
focal_class.return: Permutation
focal_class.signature: Permutation setAsPermutation(int upTo)
focal_class.class_method_signature: Partition.isDiscreteCell(int cellIndex)
focal_class.full_signature: public boolean isDiscreteCell(int cellIndex)
focal_class.identifier: isDiscreteCell
focal_class.modifiers: public
focal_class.parameters: (int cellIndex)
focal_class.return: boolean
focal_class.signature: boolean isDiscreteCell(int cellIndex)
focal_class.class_method_signature: Partition.getIndexOfFirstNonDiscreteCell()
focal_class.full_signature: public int getIndexOfFirstNonDiscreteCell()
focal_class.identifier: getIndexOfFirstNonDiscreteCell
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getIndexOfFirstNonDiscreteCell()
focal_class.class_method_signature: Partition.addSingletonCell(int element)
focal_class.full_signature: public void addSingletonCell(int element)
focal_class.identifier: addSingletonCell
focal_class.modifiers: public
focal_class.parameters: (int element)
focal_class.return: void
focal_class.signature: void addSingletonCell(int element)
focal_class.class_method_signature: Partition.removeCell(int index)
focal_class.full_signature: public void removeCell(int index)
focal_class.identifier: removeCell
focal_class.modifiers: public
focal_class.parameters: (int index)
focal_class.return: void
focal_class.signature: void removeCell(int index)
focal_class.class_method_signature: Partition.addCell(int... elements)
focal_class.full_signature: public void addCell(int... elements)
focal_class.identifier: addCell
focal_class.modifiers: public
focal_class.parameters: (int... elements)
focal_class.return: void
focal_class.signature: void addCell(int... elements)
focal_class.class_method_signature: Partition.addCell(Collection<Integer> elements)
focal_class.full_signature: public void addCell(Collection<Integer> elements)
focal_class.identifier: addCell
focal_class.modifiers: public
focal_class.parameters: (Collection<Integer> elements)
focal_class.return: void
focal_class.signature: void addCell(Collection<Integer> elements)
focal_class.class_method_signature: Partition.addToCell(int index, int element)
focal_class.full_signature: public void addToCell(int index, int element)
focal_class.identifier: addToCell
focal_class.modifiers: public
focal_class.parameters: (int index, int element)
focal_class.return: void
focal_class.signature: void addToCell(int index, int element)
focal_class.class_method_signature: Partition.insertCell(int index, SortedSet<Integer> cell)
focal_class.full_signature: public void insertCell(int index, SortedSet<Integer> cell)
focal_class.identifier: insertCell
focal_class.modifiers: public
focal_class.parameters: (int index, SortedSet<Integer> cell)
focal_class.return: void
focal_class.signature: void insertCell(int index, SortedSet<Integer> cell)
focal_class.class_method_signature: Partition.copyBlock(int cellIndex)
focal_class.full_signature: public SortedSet<Integer> copyBlock(int cellIndex)
focal_class.identifier: copyBlock
focal_class.modifiers: public
focal_class.parameters: (int cellIndex)
focal_class.return: SortedSet<Integer>
focal_class.signature: SortedSet<Integer> copyBlock(int cellIndex)
focal_class.class_method_signature: Partition.order()
focal_class.full_signature: public void order()
focal_class.identifier: order
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void order()
focal_class.class_method_signature: Partition.inSameCell(int elementI, int elementJ)
focal_class.full_signature: public boolean inSameCell(int elementI, int elementJ)
focal_class.identifier: inSameCell
focal_class.modifiers: public
focal_class.parameters: (int elementI, int elementJ)
focal_class.return: boolean
focal_class.signature: boolean inSameCell(int elementI, int elementJ)
focal_class.class_method_signature: Partition.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_class.class_method_signature: Partition.fromString(String strForm)
focal_class.full_signature: public static Partition fromString(String strForm)
focal_class.identifier: fromString
focal_class.modifiers: public static
focal_class.parameters: (String strForm)
focal_class.return: Partition
focal_class.signature: Partition fromString(String strForm)
focal_method.body: public void order() {
          Collections.sort(cells, new Comparator<SortedSet<Integer>>() {
  
              @Override
              public int compare(SortedSet<Integer> cellA, SortedSet<Integer> cellB) {
                  return cellA.first().compareTo(cellB.first());
              }
  
          });
      }
focal_method.class_method_signature: Partition.order()
focal_method.full_signature: public void order()
focal_method.identifier: order
focal_method.invocations: sort compareTo first first
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void order()