當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。