design_pattern library

Classes

InactivateSignature
test 時 property の一部を無効化する(一定の値に変更する), 等価比較を行うための method.
例えば process id など, system によって割り振られる値をこちらで指定できないので 等価比較ができない.
IterablePatternIterator<T>
PropertiesSignature
inactivate(), = operator, [] operator, など に依存されている.
ToInactivatedJsonSignature
test 時に 等価比較が行えるように 一部の property 値を無効化する(一定の値に変更する)処理を加えた json を出力する.
例えば process id など, system によって割り振られる値をこちらで指定できないので このような場合に利用する.
ToJsonSignature
ここでの toJson とは json へ encode 可能な形式へ変換するという意味で使われる.
つまり json string を返すというわけではない.
また serialize としても利用するため deserialize 可能でなければならない.

Mixins

AggregationPattern
1.toPrimitive() を override する => hashCode, ==, [], toString(), も自動的に更新される。
AggregationPatternTester
AggregationPatternToShorthandSignature
DesignPatternToNestedStructureMapEntrySignature
DesignPatternToNestedStructureMapSignature
EntityPattern<PK extends Object>
PK...PrimaryKey
EnumPattern
1つの固定値のみを持つ pattern.
IterablePattern<VT extends Object>
ListPattern<VT extends Object>
ListPatternPrivateMemberTester<VT extends Object>
RosterPattern<PK extends Object, VT extends EntityPattern<PK>>
throwable RosterPatternExceptionA.
SetPattern<VT extends Object>
VT・・・ValueType
ValuePattern<VT extends Object>
A class that has only one property named value.

Exceptions / Errors

AggregationPatternError
AggregationPatternErrorA
[] operator で無効な key を指定.
EnumPatternError
EnumPatternErrorA
fromType constructor で無効な Type を指定.
考えられる可能性.
EnumPatternException
  • EnumPatternExceptionA old BPRiverOriginExceptionD.
    input invalid value to fromValue() constructor.

  • EnumPatternExceptionB

  • EnumPatternExceptionC

  • EnumPatternExceptionD

  • EnumPatternExceptionE

  • EnumPatternExceptionF

  • EnumPatternExceptionG

  • EnumPatternExceptionA
    old BPRiverOriginExceptionD.
    input invalid value to fromValue() constructor.
    IterablePatternException
  • IterablePatternExceptionA old BPRiverOriginExceptionE.
    index is negative number at IterablePattern.getByIndex.

  • IterablePatternExceptionB old BPRiverOriginExceptionF.
    index over length at IterablePattern.getByIndex.

  • IterablePatternExceptionC old BPRiverOriginExceptionG.
    length is zero(not exists element) at IterablePattern.getByIndex.

  • IterablePatternExceptionD

  • IterablePatternExceptionE

  • IterablePatternExceptionF

  • IterablePatternExceptionG

  • IterablePatternExceptionA
    old BPRiverOriginExceptionE.
    index is negative number at IterablePattern.getByIndex.
    IterablePatternExceptionABC
    old BPRiverOriginExceptionEFG.
    IterablePatternExceptionB
    old BPRiverOriginExceptionF.
    index over length at IterablePattern.getByIndex.
    IterablePatternExceptionC
    old BPRiverOriginExceptionG.
    length is zero(not exists element) at IterablePattern.getByIndex.
    IterablePatternIteratorError
    IterablePatternIteratorErrorA
    _current is null.
    RosterPatternException
  • RosterPatternExceptionA old BPRiverOriginExceptionA.
    exists duplicate primary key.

  • RosterPatternExceptionB old BPRiverOriginExceptionB.
    not exists targeted primary key at RosterPattern.getByPrimaryKey.

  • RosterPatternExceptionC

  • RosterPatternExceptionD

  • RosterPatternExceptionE

  • RosterPatternExceptionF

  • RosterPatternExceptionG

  • RosterPatternExceptionA
    old BPRiverOriginExceptionA.
    exists duplicate primary key.
    RosterPatternExceptionB
    old BPRiverOriginExceptionB.
    not exists targeted primary key at RosterPattern.getByPrimaryKey.
    SetPatternException
  • SetPatternExceptionA old BPRiverOriginExceptionC.
    exists duplicate.

  • SetPatternExceptionB

  • SetPatternExceptionC

  • SetPatternExceptionD

  • SetPatternExceptionE

  • SetPatternExceptionF

  • SetPatternExceptionG

  • SetPatternExceptionA
    old BPRiverOriginExceptionC.
    exists duplicate.