Package ghidra.util.database
Class KeySpan.Domain
java.lang.Object
ghidra.util.database.KeySpan.Domain
- All Implemented Interfaces:
Span.Domain<Long,KeySpan>
- Enclosing interface:
KeySpan
The domain of keys
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionall()Get the span containing all values in the domainintCompare two valuesGet a given value, decremented by 1empty()Get the span that contains no value, nor has any endpointsGet a given value, incremented by 1max()Get the maximum value in the domainmin()Get the minimum value in the domainFactory method for a new span after arguments are validatedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface generic.Span.Domain
atLeast, atMost, bound, closed, encloses, intersect, intersects, max, min, subtract, toMaxString, toMinString, toString, toString, toString, value
-
Constructor Details
-
Domain
public Domain()
-
-
Method Details
-
newSpan
Description copied from interface:Span.DomainFactory method for a new span after arguments are validated- Specified by:
newSpanin interfaceSpan.Domain<Long,KeySpan> - Parameters:
min- the lower endpointmax- the upper endpoint- Returns:
- the span
-
empty
Description copied from interface:Span.DomainGet the span that contains no value, nor has any endpointsThis span is returned when the result doesn't exist, e.g., when finding the intersection of spans which do not intersect.
- Specified by:
emptyin interfaceSpan.Domain<Long,KeySpan> - Returns:
- the empty span
-
all
Description copied from interface:Span.DomainGet the span containing all values in the domain- Specified by:
allin interfaceSpan.Domain<Long,KeySpan> - Returns:
- the span
-
compare
Description copied from interface:Span.DomainCompare two values- Specified by:
comparein interfaceSpan.Domain<Long,KeySpan> - Parameters:
n1- a valuen2- another value- Returns:
- the result, as in
Comparator.compare(Object, Object)
-
min
Description copied from interface:Span.DomainGet the minimum value in the domainThis value can also represent negative infinity.
- Specified by:
minin interfaceSpan.Domain<Long,KeySpan> - Returns:
- the minimum value
-
max
Description copied from interface:Span.DomainGet the maximum value in the domainThis value can also represent positive infinity.
- Specified by:
maxin interfaceSpan.Domain<Long,KeySpan> - Returns:
- the maximum value
-
inc
Description copied from interface:Span.DomainGet a given value, incremented by 1If the resulting value would exceed
Span.Domain.max(), this should wrap toSpan.Domain.min().- Specified by:
incin interfaceSpan.Domain<Long,KeySpan> - Parameters:
n- the value- Returns:
- the value incremented
-
dec
Description copied from interface:Span.DomainGet a given value, decremented by 1If the resulting value would exceed
Span.Domain.min(), this should wrap toSpan.Domain.max().- Specified by:
decin interfaceSpan.Domain<Long,KeySpan> - Parameters:
n- the value- Returns:
- the value decremented
-