org.seasar.doma.domain
クラス AbstractComparableDomain<V extends Comparable<? super V>,D extends AbstractDomain<V,D> & ComparableDomain<V,D>>

java.lang.Object
  上位を拡張 org.seasar.doma.domain.AbstractDomain<V,D>
      上位を拡張 org.seasar.doma.domain.AbstractComparableDomain<V,D>
すべての実装されたインタフェース:
Comparable<D>, ComparableDomain<V,D>, Domain<V,D>
直系の既知のサブクラス:
BigDecimalDomain, BigIntegerDomain, BooleanDomain, ByteDomain, DateDomain, DoubleDomain, FloatDomain, IntegerDomain, LongDomain, ShortDomain, StringDomain, TimeDomain, TimestampDomain

public abstract class AbstractComparableDomain<V extends Comparable<? super V>,D extends AbstractDomain<V,D> & ComparableDomain<V,D>>
extends AbstractDomain<V,D>
implements ComparableDomain<V,D>

ComparableDomain の骨格実装です。

サブクラスに Serializable な実装を認めるために、デフォルトコンストラクタを持ちます。

作成者:
taedium

フィールドの概要
 
クラス org.seasar.doma.domain.AbstractDomain から継承されたフィールド
changed, value, valueClass
 
コンストラクタの概要
protected AbstractComparableDomain()
          サブクラスに Serializable な実装を認めるための、デフォルトコンストラクタです。
protected AbstractComparableDomain(Class<V> valueClass, V v)
          インスタンスを構築します。
 
メソッドの概要
protected  void assertComparable(D other)
           
protected  void assertComparable(V other)
           
 int compareTo(D other)
           
protected  int compareToInternal(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.AbstractDomain から継承されたメソッド
get, getValueClass, isChanged, isNull, set, setChanged, setDomain, setInternal, setNull, toString
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
インタフェース org.seasar.doma.domain.Domain から継承されたメソッド
accept, get, getValueClass, isChanged, isNull, set, setChanged, setDomain
 

コンストラクタの詳細

AbstractComparableDomain

protected AbstractComparableDomain()
サブクラスに Serializable な実装を認めるための、デフォルトコンストラクタです。

アプリケーションが呼び出してはいけません。


AbstractComparableDomain

protected AbstractComparableDomain(Class<V> valueClass,
                                   V v)
インスタンスを構築します。

パラメータ:
valueClass - 値のクラス
v - 値
例外:
DomaNullPointerException - 値のクラスが null の場合
メソッドの詳細

compareTo

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

compareToInternal

protected int compareToInternal(D other)
内部的に比較をします。

パラメータ:
other - 比較対象のドメイン
戻り値:
このドメインの値が比較対象のドメインの値より小さい場合は負の整数、等しい場合はゼロ、大きい場合は正の整数

eq

public boolean eq(V other)
インタフェース ComparableDomain の記述:
このインスタンスの値が比較対象の値と等しい場合 true を返します。

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

定義:
インタフェース ComparableDomain<V extends Comparable<? super V>,D extends AbstractDomain<V,D> & ComparableDomain<V,D>> 内の eq
パラメータ:
other - 比較対象の値
戻り値:
等しい場合

eq

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

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

定義:
インタフェース ComparableDomain<V extends Comparable<? super V>,D extends AbstractDomain<V,D> & ComparableDomain<V,D>> 内の eq
パラメータ:
other - 比較対象のドメイン
戻り値:
等しい場合 true

ge

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

定義:
インタフェース ComparableDomain<V extends Comparable<? super V>,D extends AbstractDomain<V,D> & ComparableDomain<V,D>> 内の ge
パラメータ:
other - 比較対象の値
戻り値:
大きいか等しい場合 true

ge

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

定義:
インタフェース ComparableDomain<V extends Comparable<? super V>,D extends AbstractDomain<V,D> & ComparableDomain<V,D>> 内の ge
パラメータ:
other - 比較対象のドメイン
戻り値:
大きいか等しい場合 true @ 比較対象のドメインが null の場合

gt

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

定義:
インタフェース ComparableDomain<V extends Comparable<? super V>,D extends AbstractDomain<V,D> & ComparableDomain<V,D>> 内の gt
パラメータ:
other - 比較対象の値
戻り値:
大きい場合 true

gt

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

定義:
インタフェース ComparableDomain<V extends Comparable<? super V>,D extends AbstractDomain<V,D> & ComparableDomain<V,D>> 内の gt
パラメータ:
other - 比較対象のドメイン
戻り値:
大きい場合 true @ 比較対象のドメインが null の場合

le

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

定義:
インタフェース ComparableDomain<V extends Comparable<? super V>,D extends AbstractDomain<V,D> & ComparableDomain<V,D>> 内の le
パラメータ:
other - 比較対象の値
戻り値:
小さいか等しい場合 true

le

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

定義:
インタフェース ComparableDomain<V extends Comparable<? super V>,D extends AbstractDomain<V,D> & ComparableDomain<V,D>> 内の le
パラメータ:
other - 比較対象のドメイン
戻り値:
小さいか等しい場合 true @ 比較対象のドメインが null の場合

lt

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

定義:
インタフェース ComparableDomain<V extends Comparable<? super V>,D extends AbstractDomain<V,D> & ComparableDomain<V,D>> 内の lt
パラメータ:
other - 比較対象の値
戻り値:
小さい場合 true

lt

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

定義:
インタフェース ComparableDomain<V extends Comparable<? super V>,D extends AbstractDomain<V,D> & ComparableDomain<V,D>> 内の lt
パラメータ:
other - 比較対象のドメイン
戻り値:
小さいか等しい場合 true @ 比較対象のドメインが null の場合

assertComparable

protected void assertComparable(V other)

assertComparable

protected void assertComparable(D other)


Copyright © 2009 The Seasar Foundation. All Rights Reserved.