クラス EntityModel<T>
java.lang.ObjectSE
org.springframework.hateoas.RepresentationModel<EntityModel<T>>
org.springframework.hateoas.EntityModel<T>
ドメインオブジェクトをラップしてリンクを追加する単純な
EntityModel。- 作成者:
- Oliver Gierke, Greg Turnquist
コンストラクター概要
コンストラクター修飾子コンストラクター説明protected空のEntityModelを作成します。protectedEntityModel(T content) protectedEntityModel(T content, IterableSE<Link> links) 指定されたコンテンツとLinkで新しいEntityModelを作成します。方法の概要
修飾子と型メソッド説明boolean基になるエンティティを返します。inthashCode()static <T> EntityModel<T>of(T content) 指定されたコンテンツで新しいEntityModelを作成します。static <T> EntityModel<T>of(T content, IterableSE<Link> links) 指定されたコンテンツとLinkで新しいEntityModelを作成します。static <T> EntityModel<T>指定されたコンテンツとLinkで新しいEntityModelを作成します (オプション)。toString()クラス org.springframework.hateoas.RepresentationModel から継承されたメソッド
add, add, add, addAllIf, addIf, getLink, getLink, getLinks, getLinks, getLinks, getRequiredLink, getRequiredLink, hasLink, hasLink, hasLinks, mapLink, mapLinkIf, removeLinks
コンストラクターの詳細
EntityModel
protected EntityModel()空のEntityModelを作成します。EntityModel
EntityModel
指定されたコンテンツとLinkで新しいEntityModelを作成します。- パラメーター:
content- null であってはなりません。links-EntityModelに追加するリンク。
メソッドの詳細
of
指定されたコンテンツで新しいEntityModelを作成します。- パラメーター:
content- null であってはなりません。- 戻り値:
- 導入:
- 1.1
of
指定されたコンテンツとLinkで新しいEntityModelを作成します (オプション)。- パラメーター:
content- null であってはなりません。links-EntityModelに追加するリンク。- 戻り値:
- 導入:
- 1.1
of
指定されたコンテンツとLinkで新しいEntityModelを作成します。- パラメーター:
content- null であってはなりません。links-EntityModelに追加するリンク。- 戻り値:
- 導入:
- 1.1
getContent
基になるエンティティを返します。- 戻り値:
- コンテンツ
toString
- オーバーライド:
- クラス
RepresentationModel<EntityModel<T>>のtoString
equals
- オーバーライド:
- クラス
RepresentationModel<EntityModel<T>>のequals
hashCode
public int hashCode()- オーバーライド:
- クラス
RepresentationModel<EntityModel<T>>のhashCode