Package org.aksw.commons.util.range
Class Endpoint<T>
- java.lang.Object
-
- org.aksw.commons.util.range.Endpoint<T>
-
public class Endpoint<T> extends Object
A poor-man's version of guava's internal Cut class
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)com.google.common.collect.BoundTypegetBoundType()TgetValue()inthashCode()booleanhasValue()Endpoint<T>toggleBoundType()Create a new endpoint with the bound type toggled.StringtoString()
-
-
-
Field Detail
-
value
protected T value
-
boundType
protected com.google.common.collect.BoundType boundType
-
-
Constructor Detail
-
Endpoint
public Endpoint(T value, com.google.common.collect.BoundType boundType)
-
-
Method Detail
-
getValue
public T getValue()
-
getBoundType
public com.google.common.collect.BoundType getBoundType()
-
toggleBoundType
public Endpoint<T> toggleBoundType()
Create a new endpoint with the bound type toggled. Has no effect and returns 'this' if the value is null.
-
hasValue
public boolean hasValue()
-
-