本文整理了Java中com.atlassian.streams.api.common.Option.equals()
方法的一些代码示例,展示了Option.equals()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Option.equals()
方法的具体详情如下:
包路径:com.atlassian.streams.api.common.Option
类名称:Option
方法名:equals
暂无
代码示例来源:origin: com.atlassian.streams/streams-thirdparty-api
@Override
public boolean equals(Object other)
{
if (other instanceof ActivityObject)
{
ActivityObject o = (ActivityObject) other;
return displayName.equals(o.displayName)
&& id.equals(o.id)
&& summary.equals(o.summary)
&& type.equals(o.type)
&& url.equals(o.url);
}
return false;
}
代码示例来源:origin: com.atlassian.streams/streams-thirdparty-api
@Override
public boolean equals(Object other)
{
if (other instanceof Image)
{
Image i = (Image) other;
return url.equals(i.url) && height.equals(i.height) && width.equals(i.width);
}
return false;
}
代码示例来源:origin: com.atlassian.streams/streams-thirdparty-api
@Override
public boolean equals(Object other)
{
if (other instanceof Activity)
{
Activity a = (Activity) other;
return activityId.equals(a.activityId)
&& application.equals(a.application)
&& content.equals(a.content)
&& icon.equals(a.icon)
&& id.equals(a.id)
&& object.equals(a.object)
&& postedDate.equals(a.postedDate)
&& poster.equals(a.poster)
&& registeredUser == a.registeredUser
&& target.equals(a.target)
&& title.equals(a.title)
&& url.equals(a.url)
&& user.equals(a.user)
&& verb.equals(a.verb);
}
return false;
}
代码示例来源:origin: com.atlassian.streams/streams-confluence-plugin
private Function<ActivityObject, Option<Html>> spaceObjectRenderer()
{
return o -> some(new Html(Renderers.render(templateRenderer,
"activity-object-link-space.vm",
ImmutableMap.of(
"activityObject", o,
"isPersonalSpace", o.getActivityObjectType().equals(some(personalSpace()))
))));
}
}
内容来源于网络,如有侵权,请联系作者删除!