本文整理了Java中io.vavr.control.Option.equals()
方法的一些代码示例,展示了Option.equals()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Option.equals()
方法的具体详情如下:
包路径:io.vavr.control.Option
类名称:Option
方法名:equals
暂无
代码示例来源:origin: vavr-io/vavr-jackson
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
V v = (V) o;
if (lazy != null ? !lazy.equals(v.lazy) : v.lazy != null) return false;
return option != null ? option.equals(v.option) : v.option == null;
}
代码示例来源:origin: com.mercateo.eventstore/client-common
private boolean equalTo(ImmutableEventStoreFailure another) {
return type.equals(another.type)
&& this.dataTBD().equals(another.dataTBD());
}
代码示例来源:origin: com.mercateo.eventstore/client-common
private boolean equalTo(ImmutableEventMetadata another) {
return eventStreamId.equals(another.eventStreamId)
&& eventNumber.equals(another.eventNumber)
&& eventType.equals(another.eventType)
&& eventId.equals(another.eventId)
&& this.eventSchemaRef().equals(another.eventSchemaRef())
&& version.equals(another.version)
&& this.causality().equals(another.causality())
&& this.eventInitiator().equals(another.eventInitiator());
}
代码示例来源:origin: vavr-io/vavr-jackson
if (complexInnerClassTuple2 != null ? !complexInnerClassTuple2.equals(that.complexInnerClassTuple2) : that.complexInnerClassTuple2 != null)
return false;
if (opt1 != null ? !opt1.equals(that.opt1) : that.opt1 != null) return false;
return !(opt2 != null ? !opt2.equals(that.opt2) : that.opt2 != null);
内容来源于网络,如有侵权,请联系作者删除!