本文整理汇总了Java中com.google.common.base.Objects类的典型用法代码示例。如果您正苦于以下问题:Java Objects类的具体用法?Java Objects怎么用?Java Objects使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Objects类属于com.google.common.base包,在下文中一共展示了Objects类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: equals
import com.google.common.base.Objects; //导入依赖的package包/类
@Override
public boolean equals(final Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
final AllFields other = (AllFields) obj;
return Objects.equal(docid, other.docid)
&& Objects.equal(type, other.type)
&& Objects.equal(role, other.role)
&& Objects.equal(realis, other.realis)
&& Objects.equal(argumentCanonicalString, other.argumentCanonicalString)
&& Objects.equal(argumentJustifications, other.argumentJustifications)
&& Objects.equal(predicateJustifications, other.predicateJustifications);
}
示例2: equals
import com.google.common.base.Objects; //导入依赖的package包/类
@Override public boolean equals(Object o) {
if (!(o instanceof Message)) {
return false;
}
Message e = (Message) o;
return message.equals(e.message) && Objects.equal(cause, e.cause) && sources.equals(e.sources);
}
示例3: equals
import com.google.common.base.Objects; //导入依赖的package包/类
@Override
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (other == null) {
return false;
}
if (getClass()!= other.getClass()) {
return false;
}
final TransportHandlingUnitType o = ((TransportHandlingUnitType) other);
return ((((((((((((((((((((((((((Objects.equal(id, o.id)&&Objects.equal(transportHandlingUnitTypeCode, o.transportHandlingUnitTypeCode))&&Objects.equal(handlingCode, o.handlingCode))&&Objects.equal(handlingInstructions, o.handlingInstructions))&&Objects.equal(hazardousRiskIndicator, o.hazardousRiskIndicator))&&Objects.equal(totalGoodsItemQuantity, o.totalGoodsItemQuantity))&&Objects.equal(totalPackageQuantity, o.totalPackageQuantity))&&Objects.equal(damageRemarks, o.damageRemarks))&&Objects.equal(shippingMarks, o.shippingMarks))&&Objects.equal(traceID, o.traceID))&&Objects.equal(handlingUnitDespatchLine, o.handlingUnitDespatchLine))&&Objects.equal(actualPackage, o.actualPackage))&&Objects.equal(receivedHandlingUnitReceiptLine, o.receivedHandlingUnitReceiptLine))&&Objects.equal(transportEquipment, o.transportEquipment))&&Objects.equal(transportMeans, o.transportMeans))&&Objects.equal(hazardousGoodsTransit, o.hazardousGoodsTransit))&&Objects.equal(measurementDimension, o.measurementDimension))&&Objects.equal(minimumTemperature, o.minimumTemperature))&&Objects.equal(maximumTemperature, o.maximumTemperature))&&Objects.equal(goodsItem, o.goodsItem))&&Objects.equal(floorSpaceMeasurementDimension, o.floorSpaceMeasurementDimension))&&Objects.equal(palletSpaceMeasurementDimension, o.palletSpaceMeasurementDimension))&&Objects.equal(shipmentDocumentReference, o.shipmentDocumentReference))&&Objects.equal(status, o.status))&&Objects.equal(customsDeclaration, o.customsDeclaration))&&Objects.equal(referencedShipment, o.referencedShipment))&&Objects.equal(_package, o._package));
}
示例4: equals
import com.google.common.base.Objects; //导入依赖的package包/类
@Override
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (other == null) {
return false;
}
if (getClass()!= other.getClass()) {
return false;
}
final UNDGCodeType o = ((UNDGCodeType) other);
return (((((((((Objects.equal(value, o.value)&&Objects.equal(listID, o.listID))&&Objects.equal(listAgencyID, o.listAgencyID))&&Objects.equal(listAgencyName, o.listAgencyName))&&Objects.equal(listName, o.listName))&&Objects.equal(listVersionID, o.listVersionID))&&Objects.equal(name, o.name))&&Objects.equal(languageID, o.languageID))&&Objects.equal(listURI, o.listURI))&&Objects.equal(listSchemeURI, o.listSchemeURI));
}
示例5: equals
import com.google.common.base.Objects; //导入依赖的package包/类
@Override
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (other == null) {
return false;
}
if (getClass()!= other.getClass()) {
return false;
}
final EarliestPickupTimeType o = ((EarliestPickupTimeType) other);
return Objects.equal(value, o.value);
}
示例6: equals
import com.google.common.base.Objects; //导入依赖的package包/类
@Override
public boolean equals(Object obj)
{
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Wrapper other = (Wrapper)obj;
return Objects.equal(this.obj, other.obj);
}
示例7: equals
import com.google.common.base.Objects; //导入依赖的package包/类
@Override
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (other == null) {
return false;
}
if (getClass()!= other.getClass()) {
return false;
}
final UBLDocumentSignaturesType o = ((UBLDocumentSignaturesType) other);
return Objects.equal(signatureInformation, o.signatureInformation);
}
示例8: equivalent
import com.google.common.base.Objects; //导入依赖的package包/类
/**
* @deprecated Use {@link Network#equals(Object)} instead. This method will be removed in late
* 2017.
*/
// TODO(user): Delete this method.
@Deprecated
public static boolean equivalent(
@Nullable Network<?, ?> networkA, @Nullable Network<?, ?> networkB) {
return Objects.equal(networkA, networkB);
}
示例9: equals
import com.google.common.base.Objects; //导入依赖的package包/类
@Override
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (other == null) {
return false;
}
if (getClass()!= other.getClass()) {
return false;
}
final ReturnableMaterialIndicatorType o = ((ReturnableMaterialIndicatorType) other);
return Objects.equal(value, o.value);
}
示例10: SqlAddLayout
import com.google.common.base.Objects; //导入依赖的package包/类
private SqlAddLayout(SqlParserPos pos, SqlIdentifier tblName, SqlNode isRaw, SqlNodeList displayList,
SqlNodeList dimensionList, SqlNodeList measureList, SqlNodeList distributionList, SqlNodeList partitionList,
SqlNodeList sortList, PartitionDistributionStrategy partitionDistributionStrategy, SqlIdentifier name) {
super(pos);
this.tblName = tblName;
this.isRaw = isRaw;
this.displayList = Objects.firstNonNull(displayList, SqlNodeList.EMPTY);
this.dimensionList = Objects.firstNonNull(dimensionList, SqlNodeList.EMPTY);
this.measureList = Objects.firstNonNull(measureList, SqlNodeList.EMPTY);
this.distributionList = distributionList;
this.partitionList = partitionList;
this.sortList = sortList;
this.partitionDistributionStrategy = partitionDistributionStrategy;
this.name = name;
}
示例11: equals
import com.google.common.base.Objects; //导入依赖的package包/类
@Override
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (other == null) {
return false;
}
if (getClass()!= other.getClass()) {
return false;
}
final CallTimeType o = ((CallTimeType) other);
return Objects.equal(value, o.value);
}
示例12: equals
import com.google.common.base.Objects; //导入依赖的package包/类
@Override
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (other == null) {
return false;
}
if (getClass()!= other.getClass()) {
return false;
}
final ParentDocumentLineReferenceIDType o = ((ParentDocumentLineReferenceIDType) other);
return (((((((Objects.equal(value, o.value)&&Objects.equal(schemeID, o.schemeID))&&Objects.equal(schemeName, o.schemeName))&&Objects.equal(schemeAgencyID, o.schemeAgencyID))&&Objects.equal(schemeAgencyName, o.schemeAgencyName))&&Objects.equal(schemeVersionID, o.schemeVersionID))&&Objects.equal(schemeDataURI, o.schemeDataURI))&&Objects.equal(schemeURI, o.schemeURI));
}
示例13: equals
import com.google.common.base.Objects; //导入依赖的package包/类
@Override
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (other == null) {
return false;
}
if (getClass()!= other.getClass()) {
return false;
}
final BackorderReasonType o = ((BackorderReasonType) other);
return ((Objects.equal(value, o.value)&&Objects.equal(languageID, o.languageID))&&Objects.equal(languageLocaleID, o.languageLocaleID));
}
示例14: equals
import com.google.common.base.Objects; //导入依赖的package包/类
@Override
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (other == null) {
return false;
}
if (getClass()!= other.getClass()) {
return false;
}
final SettlementDiscountPercentType o = ((SettlementDiscountPercentType) other);
return (Objects.equal(value, o.value)&&Objects.equal(format, o.format));
}
示例15: equals
import com.google.common.base.Objects; //导入依赖的package包/类
@Override
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (other == null) {
return false;
}
if (getClass()!= other.getClass()) {
return false;
}
final RoomType o = ((RoomType) other);
return ((Objects.equal(value, o.value)&&Objects.equal(languageID, o.languageID))&&Objects.equal(languageLocaleID, o.languageLocaleID));
}