|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.doma.domain.AbstractDomain<V,D>
org.seasar.doma.domain.AbstractComparableDomain<V,D>
public abstract class AbstractComparableDomain<V extends Comparable<? super V>,D extends AbstractDomain<V,D> & ComparableDomain<V,D>>
ComparableDomain の骨格実装です。
サブクラスに Serializable な実装を認めるために、デフォルトコンストラクタを持ちます。
| フィールドの概要 |
|---|
| クラス 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 |
| コンストラクタの詳細 |
|---|
protected AbstractComparableDomain()
Serializable な実装を認めるための、デフォルトコンストラクタです。
アプリケーションが呼び出してはいけません。
protected AbstractComparableDomain(Class<V> valueClass,
V v)
valueClass - 値のクラスv - 値
DomaNullPointerException - 値のクラスが null の場合| メソッドの詳細 |
|---|
public int compareTo(D other)
Comparable<D extends AbstractDomain<V,D> & ComparableDomain<V,D>> 内の compareToComparableDomain<V extends Comparable<? super V>,D extends AbstractDomain<V,D> & ComparableDomain<V,D>> 内の compareToprotected int compareToInternal(D other)
other - 比較対象のドメイン
public boolean eq(V other)
ComparableDomain の記述:true を返します。
値が null 同士である場合、等しいとみなされます。
ComparableDomain<V extends Comparable<? super V>,D extends AbstractDomain<V,D> & ComparableDomain<V,D>> 内の eqother - 比較対象の値
public boolean eq(D other)
ComparableDomain の記述:true を返します。
値が null 同士である場合、等しいとみなされます。
ComparableDomain<V extends Comparable<? super V>,D extends AbstractDomain<V,D> & ComparableDomain<V,D>> 内の eqother - 比較対象のドメイン
truepublic boolean ge(V other)
ComparableDomain の記述:true を返します。
ComparableDomain<V extends Comparable<? super V>,D extends AbstractDomain<V,D> & ComparableDomain<V,D>> 内の geother - 比較対象の値
truepublic boolean ge(D other)
ComparableDomain の記述:true を返します。
ComparableDomain<V extends Comparable<? super V>,D extends AbstractDomain<V,D> & ComparableDomain<V,D>> 内の geother - 比較対象のドメイン
true @ 比較対象のドメインが null の場合public boolean gt(V other)
ComparableDomain の記述:true を返します。
ComparableDomain<V extends Comparable<? super V>,D extends AbstractDomain<V,D> & ComparableDomain<V,D>> 内の gtother - 比較対象の値
truepublic boolean gt(D other)
ComparableDomain の記述:true を返します。
ComparableDomain<V extends Comparable<? super V>,D extends AbstractDomain<V,D> & ComparableDomain<V,D>> 内の gtother - 比較対象のドメイン
true @ 比較対象のドメインが null の場合public boolean le(V other)
ComparableDomain の記述:true を返します。
ComparableDomain<V extends Comparable<? super V>,D extends AbstractDomain<V,D> & ComparableDomain<V,D>> 内の leother - 比較対象の値
truepublic boolean le(D other)
ComparableDomain の記述:true を返します。
ComparableDomain<V extends Comparable<? super V>,D extends AbstractDomain<V,D> & ComparableDomain<V,D>> 内の leother - 比較対象のドメイン
true @ 比較対象のドメインが null の場合public boolean lt(V other)
ComparableDomain の記述:true を返します。
ComparableDomain<V extends Comparable<? super V>,D extends AbstractDomain<V,D> & ComparableDomain<V,D>> 内の ltother - 比較対象の値
truepublic boolean lt(D other)
ComparableDomain の記述:true を返します。
ComparableDomain<V extends Comparable<? super V>,D extends AbstractDomain<V,D> & ComparableDomain<V,D>> 内の ltother - 比較対象のドメイン
true @ 比較対象のドメインが null の場合protected void assertComparable(V other)
protected void assertComparable(D other)
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||