| Constructor and Description |
|---|
NVersionRange()
Initializes a new instance of the NVersionRange structure.
|
NVersionRange(int value)
Initializes a new instance of the NVersionRange structure.
|
NVersionRange(NVersion from,
NVersion to)
Initializes a new instance of the NVersionRange structure.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(NVersion value)
Checks whether the version range contains a specific version.
|
boolean |
contains(NVersionRange value)
Checks whether the version range contains a specific version range.
|
boolean |
equals(Object obj)
Checks whether the current object equals the specified object.
|
NVersion |
getFrom()
Gets the lower NVersion value.
|
NVersion |
getTo()
Gets the upper NVersion value.
|
int |
getValue()
Gets the version range value.
|
int |
hashCode()
Gets the hash code of the current object.
|
NVersionRange |
intersect(NVersionRange value)
Gets the intersection of the current and specified version ranges.
|
NVersionRange |
intersect(NVersionRange value1,
NVersionRange value2)
Gets the intersection of two version ranges.
|
boolean |
intersectsWith(NVersionRange value)
Checks whether the current version range intersects with the specified version range.
|
static NType |
nativeTypeOf() |
String |
toString()
Retrieves the string representation of the current version range.
|
String |
toString(String format) |
public NVersionRange()
public NVersionRange(int value)
value - The version range value.public static NType nativeTypeOf()
public NVersion getFrom()
public NVersion getTo()
public int getValue()
public boolean contains(NVersion value)
value - The specific NVersion.public boolean contains(NVersionRange value)
value - The specific NVersionRange.public boolean intersectsWith(NVersionRange value)
value - The specified NVersionRange.public NVersionRange intersect(NVersionRange value)
value - The specified version range.public NVersionRange intersect(NVersionRange value1, NVersionRange value2)
value1 - The first version range.value2 - The second version range.public boolean equals(Object obj)
public int hashCode()
public final String toString()
Copyright © 2016 Neurotechnology. All rights reserved.