com.atlassian.streams.api.common.Option.equals()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(147)

本文整理了Java中com.atlassian.streams.api.common.Option.equals()方法的一些代码示例,展示了Option.equals()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Option.equals()方法的具体详情如下:
包路径:com.atlassian.streams.api.common.Option
类名称:Option
方法名:equals

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()))
        ))));
  }
}

相关文章