org.seasar.doma.domain
インタフェース ComparableDomain<V extends Comparable<? super V>,D extends Domain<V,D> & Comparable<? super D>>

型パラメータ:
V - 値の型
D - ドメインの型
すべてのスーパーインタフェース:
Comparable<D>, Domain<V,D>
既知の実装クラスの一覧:
AbstractComparableDomain, BigDecimalDomain, BigIntegerDomain, BooleanDomain, BuiltinBigDecimalDomain, BuiltinBigIntegerDomain, BuiltinBooleanDomain, BuiltinByteDomain, BuiltinDateDomain, BuiltinDoubleDomain, BuiltinFloatDomain, BuiltinIntegerDomain, BuiltinLongDomain, BuiltinShortDomain, BuiltinStringDomain, BuiltinTimeDomain, BuiltinTimestampDomain, ByteDomain, DateDomain, DoubleDomain, FloatDomain, IntegerDomain, LongDomain, ShortDomain, StringDomain, TimeDomain, TimestampDomain

public interface ComparableDomain<V extends Comparable<? super V>,D extends Domain<V,D> & Comparable<? super D>>
extends Domain<V,D>, Comparable<D>

比較可能な Domain です。

作成者:
taedium

メソッドの概要
 int compareTo(D other)
           
 boolean eq(D other)
          このインスタンスの値が比較対象のドメインの値と等しい場合 true を返します。
 boolean eq(V other)
          このインスタンスの値が比較対象の値と等しい場合 true を返します。
 boolean ge(D other)
          このインスタンスの値が比較対象のドメインの値と大きいか等しい場合 true を返します。
 boolean ge(V other)
          このインスタンスの値が比較対象の値よりも大きいか等しい場合 true を返します。
 boolean gt(D other)
          このインスタンスの値が比較対象のドメインの値よりも大きい場合 true を返します。
 boolean gt(V other)
          このインスタンスの値が比較対象の値よりも大きい場合 true を返します。
 boolean le(D other)
          このインスタンスの値が比較対象のドメインの値よりも小さいか等しい場合 true を返します。
 boolean le(V other)
          このインスタンスの値が比較対象の値よりも小さいか等しい場合 true を返します。
 boolean lt(D other)
          このインスタンスの値が比較対象のドメインの値よりも小さい場合 true を返します。
 boolean lt(V other)
          このインスタンスの値が比較対象の値よりも小さい場合 true を返します。
 
インタフェース org.seasar.doma.domain.Domain から継承されたメソッド
accept, get, getValueClass, isChanged, isNull, set, setChanged, setDomain
 

メソッドの詳細

compareTo

int compareTo(D other)
定義:
インタフェース Comparable<D extends Domain<V,D> & Comparable<? super D>> 内の compareTo

eq

boolean eq(V other)
このインスタンスの値が比較対象の値と等しい場合 true を返します。

値が null 同士である場合、等しいとみなされます。

パラメータ:
other - 比較対象の値
戻り値:
等しい場合

eq

boolean eq(D other)
このインスタンスの値が比較対象のドメインの値と等しい場合 true を返します。

値が null 同士である場合、等しいとみなされます。

パラメータ:
other - 比較対象のドメイン
戻り値:
等しい場合 true
例外:
DomaNullPointerException - 比較対象のドメインが null の場合

ge

boolean ge(V other)
このインスタンスの値が比較対象の値よりも大きいか等しい場合 true を返します。

パラメータ:
other - 比較対象の値
戻り値:
大きいか等しい場合 true
例外:
DomainIncomparableException - このインスタンスの値もしくは、比較対象の値が null の場合

ge

boolean ge(D other)
このインスタンスの値が比較対象のドメインの値と大きいか等しい場合 true を返します。

パラメータ:
other - 比較対象のドメイン
戻り値:
大きいか等しい場合 true @ 比較対象のドメインが null の場合
例外:
DomainIncomparableException - このインスタンスの値もしくは、比較対象のドメイン値が null の場合

gt

boolean gt(V other)
このインスタンスの値が比較対象の値よりも大きい場合 true を返します。

パラメータ:
other - 比較対象の値
戻り値:
大きい場合 true
例外:
DomainIncomparableException - このインスタンスの値もしくは、比較対象の値が null の場合

gt

boolean gt(D other)
このインスタンスの値が比較対象のドメインの値よりも大きい場合 true を返します。

パラメータ:
other - 比較対象のドメイン
戻り値:
大きい場合 true @ 比較対象のドメインが null の場合
例外:
DomainIncomparableException - このインスタンスの値もしくは、比較対象のドメイン値が null の場合

le

boolean le(V other)
このインスタンスの値が比較対象の値よりも小さいか等しい場合 true を返します。

パラメータ:
other - 比較対象の値
戻り値:
小さいか等しい場合 true
例外:
DomainIncomparableException - このインスタンスの値もしくは、比較対象の値が null の場合

le

boolean le(D other)
このインスタンスの値が比較対象のドメインの値よりも小さいか等しい場合 true を返します。

パラメータ:
other - 比較対象のドメイン
戻り値:
小さいか等しい場合 true @ 比較対象のドメインが null の場合
例外:
DomainIncomparableException - このインスタンスの値もしくは、比較対象のドメイン値が null の場合

lt

boolean lt(V other)
このインスタンスの値が比較対象の値よりも小さい場合 true を返します。

パラメータ:
other - 比較対象の値
戻り値:
小さい場合 true
例外:
DomainIncomparableException - このインスタンスの値もしくは、比較対象の値が null の場合

lt

boolean lt(D other)
このインスタンスの値が比較対象のドメインの値よりも小さい場合 true を返します。

パラメータ:
other - 比較対象のドメイン
戻り値:
小さいか等しい場合 true @ 比較対象のドメインが null の場合
例外:
DomainIncomparableException - このインスタンスの値もしくは、比較対象のドメイン値が null の場合


Copyright © 2009 The Seasar Foundation. All Rights Reserved.