Class DisjointSets.Subsets
- java.lang.Object
-
- org.locationtech.jts.operation.union.DisjointSets.Subsets
-
- Enclosing class:
- DisjointSets
public class DisjointSets.Subsets extends java.lang.Object
Provides accessors for items in disjoint subsets.- Author:
- mdavis
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCount()
Gets the number of disjoint subsets.int
getItem(int s, int i)
Gets an item from a subset.int
getSize(int s)
Gets the number of items in a given subset.
-
-
-
Method Detail
-
getCount
public int getCount()
Gets the number of disjoint subsets.- Returns:
- the number of subsets
-
getSize
public int getSize(int s)
Gets the number of items in a given subset.- Parameters:
s
- the number of the subset- Returns:
- the size of the subset
-
getItem
public int getItem(int s, int i)
Gets an item from a subset.- Parameters:
s
- the subset numberi
- the index of the item in the subset- Returns:
- the item
-
-