org.gcube.data.trees.patterns
Class EdgePattern.Range

java.lang.Object
  extended by org.gcube.data.trees.patterns.EdgePattern.Range
Enclosing class:
EdgePattern

public static class EdgePattern.Range
extends Object

The minimum and maximum number of Edges that may match a given EdgePattern.

Author:
Fabio Simeoni

Method Summary
 boolean includes(EdgePattern.Range other)
          Returns true if this range is included in another.
 int max()
          Returns the minimum number of Edges that may match a given EdgePattern.
 int min()
          Returns the maximum number of Edges that may match a given EdgePattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

max

public int max()
Returns the minimum number of Edges that may match a given EdgePattern.

Returns:
the minimum number.

min

public int min()
Returns the maximum number of Edges that may match a given EdgePattern.

Returns:
the maximum number.

includes

public boolean includes(EdgePattern.Range other)
Returns true if this range is included in another.

Parameters:
other - the other range
Returns:
true if this range is included in the other, false otherwise


Copyright © 2013. All Rights Reserved.