当前位置: 首页>>代码示例>>Java>>正文


Java Objects类代码示例

本文整理汇总了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);
}
 
开发者ID:isi-nlp,项目名称:tac-kbp-eal,代码行数:21,代码来源:AllFields.java

示例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);
}
 
开发者ID:maetrive,项目名称:businessworks,代码行数:8,代码来源:Message.java

示例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));
}
 
开发者ID:AlnaSoftware,项目名称:eSaskaita,代码行数:15,代码来源:TransportHandlingUnitType.java

示例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));
}
 
开发者ID:AlnaSoftware,项目名称:eSaskaita,代码行数:15,代码来源:UNDGCodeType.java

示例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);
}
 
开发者ID:AlnaSoftware,项目名称:eSaskaita,代码行数:15,代码来源:EarliestPickupTimeType.java

示例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);
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:13,代码来源:MapModelState.java

示例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);
}
 
开发者ID:AlnaSoftware,项目名称:eSaskaita,代码行数:15,代码来源:UBLDocumentSignaturesType.java

示例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);
}
 
开发者ID:paul-hammant,项目名称:googles-monorepo-demo,代码行数:11,代码来源:Graphs.java

示例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);
}
 
开发者ID:AlnaSoftware,项目名称:eSaskaita,代码行数:15,代码来源:ReturnableMaterialIndicatorType.java

示例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;
}
 
开发者ID:dremio,项目名称:dremio-oss,代码行数:16,代码来源:SqlAddLayout.java

示例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);
}
 
开发者ID:AlnaSoftware,项目名称:eSaskaita,代码行数:15,代码来源:CallTimeType.java

示例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));
}
 
开发者ID:AlnaSoftware,项目名称:eSaskaita,代码行数:15,代码来源:ParentDocumentLineReferenceIDType.java

示例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));
}
 
开发者ID:AlnaSoftware,项目名称:eSaskaita,代码行数:15,代码来源:BackorderReasonType.java

示例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));
}
 
开发者ID:AlnaSoftware,项目名称:eSaskaita,代码行数:15,代码来源:SettlementDiscountPercentType.java

示例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));
}
 
开发者ID:AlnaSoftware,项目名称:eSaskaita,代码行数:15,代码来源:RoomType.java


注:本文中的com.google.common.base.Objects类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。