- java.lang.Object
-
- org.jgrapht.graph.DirectedAcyclicGraph.Region
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- DirectedAcyclicGraph<V,E>
protected static class DirectedAcyclicGraph.Region extends java.lang.Object implements java.io.Serializable
An inclusive range of indices: [start, finish].- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private int
finish
private static long
serialVersionUID
private int
start
-
Constructor Summary
Constructors Constructor Description Region(int start, int finish)
Construct a new region.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getFinish()
Get the end of the region (inclusive).int
getSize()
Get the size of the region.int
getStart()
Get the start of the region.boolean
isIn(int index)
Check if index is in the region.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
start
private final int start
-
finish
private final int finish
-
-
Method Detail
-
getSize
public int getSize()
Get the size of the region.- Returns:
- the size of the region
-
isIn
public boolean isIn(int index)
Check if index is in the region.- Parameters:
index
- the index to check- Returns:
- true if the index is in the region, false otherwise
-
getStart
public int getStart()
Get the start of the region.- Returns:
- the start of the region
-
getFinish
public int getFinish()
Get the end of the region (inclusive).- Returns:
- the end of the region (inclusive)
-
-