com.mysema.query.types
Class IntervalImpl<T>

java.lang.Object
  extended by com.mysema.query.types.IntervalImpl<T>
Type Parameters:
T -
All Implemented Interfaces:
Interval<T>

public class IntervalImpl<T>
extends Object
implements Interval<T>

Default implementation of the interval interface

Author:
tiwe

Constructor Summary
IntervalImpl(T begin, T end)
           
 
Method Summary
static
<T> Interval<T>
create(T begin, T end)
           
 T getBegin()
          Get the beginning of the interval or null
 T getEnd()
          Get the end of the interval or null
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntervalImpl

public IntervalImpl(@Nullable
                    T begin,
                    @Nullable
                    T end)
Method Detail

create

public static <T> Interval<T> create(@Nullable
                                     T begin,
                                     @Nullable
                                     T end)

getBegin

public T getBegin()
Description copied from interface: Interval
Get the beginning of the interval or null

Specified by:
getBegin in interface Interval<T>
Returns:

getEnd

public T getEnd()
Description copied from interface: Interval
Get the end of the interval or null

Specified by:
getEnd in interface Interval<T>
Returns:


Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.