當前位置: 首頁>>代碼示例>>Java>>正文


Java Objects.equal方法代碼示例

本文整理匯總了Java中com.google.common.base.Objects.equal方法的典型用法代碼示例。如果您正苦於以下問題:Java Objects.equal方法的具體用法?Java Objects.equal怎麽用?Java Objects.equal使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.google.common.base.Objects的用法示例。


在下文中一共展示了Objects.equal方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: equals

import com.google.common.base.Objects; //導入方法依賴的package包/類
@Override
public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    DEEP deep = (DEEP) o;
    return Objects.equal(symbol, deep.symbol) &&
            Objects.equal(marketPercent, deep.marketPercent) &&
            Objects.equal(volume, deep.volume) &&
            Objects.equal(lastSalePrice, deep.lastSalePrice) &&
            Objects.equal(lastSaleSize, deep.lastSaleSize) &&
            Objects.equal(lastSaleTime, deep.lastSaleTime) &&
            Objects.equal(lastUpdated, deep.lastUpdated) &&
            Objects.equal(bids, deep.bids) &&
            Objects.equal(asks, deep.asks) &&
            Objects.equal(systemEvent, deep.systemEvent) &&
            Objects.equal(tradingStatus, deep.tradingStatus) &&
            Objects.equal(opHaltStatus, deep.opHaltStatus) &&
            Objects.equal(ssrStatus, deep.ssrStatus) &&
            Objects.equal(securityEvent, deep.securityEvent) &&
            Objects.equal(trades, deep.trades) &&
            Objects.equal(tradeBreaks, deep.tradeBreaks) &&
            Objects.equal(auction, deep.auction);
}
 
開發者ID:WojciechZankowski,項目名稱:iextrading4j,代碼行數:24,代碼來源:DEEP.java

示例2: equals

import com.google.common.base.Objects; //導入方法依賴的package包/類
@Override
public boolean equals(Object o) {
  if (this == o) {
    return true;
  }

  if (o == null || getClass() != o.getClass()) {
    return false;
  }

  final ArrowFormatPluginConfig that = (ArrowFormatPluginConfig) o;

  return Objects.equal(outputExtension, that.outputExtension);
}
 
開發者ID:dremio,項目名稱:dremio-oss,代碼行數:15,代碼來源:ArrowFormatPluginConfig.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 ValidationResultCodeType o = ((ValidationResultCodeType) 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,代碼來源:ValidationResultCodeType.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 UnknownPriceIndicatorType o = ((UnknownPriceIndicatorType) other);
    return Objects.equal(value, o.value);
}
 
開發者ID:AlnaSoftware,項目名稱:eSaskaita,代碼行數:15,代碼來源:UnknownPriceIndicatorType.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 ContractSubdivisionType o = ((ContractSubdivisionType) other);
    return ((Objects.equal(value, o.value)&&Objects.equal(languageID, o.languageID))&&Objects.equal(languageLocaleID, o.languageLocaleID));
}
 
開發者ID:AlnaSoftware,項目名稱:eSaskaita,代碼行數:15,代碼來源:ContractSubdivisionType.java

示例6: 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 ChildConsignmentQuantityType o = ((ChildConsignmentQuantityType) other);
    return ((((Objects.equal(value, o.value)&&Objects.equal(unitCode, o.unitCode))&&Objects.equal(unitCodeListID, o.unitCodeListID))&&Objects.equal(unitCodeListAgencyID, o.unitCodeListAgencyID))&&Objects.equal(unitCodeListAgencyName, o.unitCodeListAgencyName));
}
 
開發者ID:AlnaSoftware,項目名稱:eSaskaita,代碼行數:15,代碼來源:ChildConsignmentQuantityType.java

示例7: equals

import com.google.common.base.Objects; //導入方法依賴的package包/類
@Override
public boolean equals(Object o) {
    if (this == o) return true;
    if (!(o instanceof Address)) return false;
    Address address = (Address) o;
    return Objects.equal(streetName, address.streetName) &&
            Objects.equal(city, address.city) &&
            Objects.equal(province, address.province) &&
            Objects.equal(postalCode, address.postalCode) &&
            Objects.equal(country, address.country);
}
 
開發者ID:fdlessard,項目名稱:EqualsProject,代碼行數:12,代碼來源:Address.java

示例8: 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 PostEventNotificationDurationMeasureType o = ((PostEventNotificationDurationMeasureType) other);
    return ((Objects.equal(value, o.value)&&Objects.equal(unitCode, o.unitCode))&&Objects.equal(unitCodeListVersionID, o.unitCodeListVersionID));
}
 
開發者ID:AlnaSoftware,項目名稱:eSaskaita,代碼行數:15,代碼來源:PostEventNotificationDurationMeasureType.java

示例9: equals

import com.google.common.base.Objects; //導入方法依賴的package包/類
@Override public boolean equals(Object obj) {
  if (obj instanceof MetricsInfo) {
    MetricsInfo other = (MetricsInfo) obj;
    return Objects.equal(name, other.name()) &&
           Objects.equal(description, other.description());
  }
  return false;
}
 
開發者ID:naver,項目名稱:hadoop,代碼行數:9,代碼來源:MetricsInfoImpl.java

示例10: 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 ConsignmentType o = ((ConsignmentType) other);
    return (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((Objects.equal(id, o.id)&&Objects.equal(carrierAssignedID, o.carrierAssignedID))&&Objects.equal(consigneeAssignedID, o.consigneeAssignedID))&&Objects.equal(consignorAssignedID, o.consignorAssignedID))&&Objects.equal(freightForwarderAssignedID, o.freightForwarderAssignedID))&&Objects.equal(brokerAssignedID, o.brokerAssignedID))&&Objects.equal(contractedCarrierAssignedID, o.contractedCarrierAssignedID))&&Objects.equal(performingCarrierAssignedID, o.performingCarrierAssignedID))&&Objects.equal(summaryDescription, o.summaryDescription))&&Objects.equal(totalInvoiceAmount, o.totalInvoiceAmount))&&Objects.equal(declaredCustomsValueAmount, o.declaredCustomsValueAmount))&&Objects.equal(tariffDescription, o.tariffDescription))&&Objects.equal(tariffCode, o.tariffCode))&&Objects.equal(insurancePremiumAmount, o.insurancePremiumAmount))&&Objects.equal(grossWeightMeasure, o.grossWeightMeasure))&&Objects.equal(netWeightMeasure, o.netWeightMeasure))&&Objects.equal(netNetWeightMeasure, o.netNetWeightMeasure))&&Objects.equal(chargeableWeightMeasure, o.chargeableWeightMeasure))&&Objects.equal(grossVolumeMeasure, o.grossVolumeMeasure))&&Objects.equal(netVolumeMeasure, o.netVolumeMeasure))&&Objects.equal(loadingLengthMeasure, o.loadingLengthMeasure))&&Objects.equal(remarks, o.remarks))&&Objects.equal(hazardousRiskIndicator, o.hazardousRiskIndicator))&&Objects.equal(animalFoodIndicator, o.animalFoodIndicator))&&Objects.equal(humanFoodIndicator, o.humanFoodIndicator))&&Objects.equal(livestockIndicator, o.livestockIndicator))&&Objects.equal(bulkCargoIndicator, o.bulkCargoIndicator))&&Objects.equal(containerizedIndicator, o.containerizedIndicator))&&Objects.equal(generalCargoIndicator, o.generalCargoIndicator))&&Objects.equal(specialSecurityIndicator, o.specialSecurityIndicator))&&Objects.equal(thirdPartyPayerIndicator, o.thirdPartyPayerIndicator))&&Objects.equal(carrierServiceInstructions, o.carrierServiceInstructions))&&Objects.equal(customsClearanceServiceInstructions, o.customsClearanceServiceInstructions))&&Objects.equal(forwarderServiceInstructions, o.forwarderServiceInstructions))&&Objects.equal(specialServiceInstructions, o.specialServiceInstructions))&&Objects.equal(sequenceID, o.sequenceID))&&Objects.equal(shippingPriorityLevelCode, o.shippingPriorityLevelCode))&&Objects.equal(handlingCode, o.handlingCode))&&Objects.equal(handlingInstructions, o.handlingInstructions))&&Objects.equal(information, o.information))&&Objects.equal(totalGoodsItemQuantity, o.totalGoodsItemQuantity))&&Objects.equal(totalTransportHandlingUnitQuantity, o.totalTransportHandlingUnitQuantity))&&Objects.equal(insuranceValueAmount, o.insuranceValueAmount))&&Objects.equal(declaredForCarriageValueAmount, o.declaredForCarriageValueAmount))&&Objects.equal(declaredStatisticsValueAmount, o.declaredStatisticsValueAmount))&&Objects.equal(freeOnBoardValueAmount, o.freeOnBoardValueAmount))&&Objects.equal(specialInstructions, o.specialInstructions))&&Objects.equal(splitConsignmentIndicator, o.splitConsignmentIndicator))&&Objects.equal(deliveryInstructions, o.deliveryInstructions))&&Objects.equal(consignmentQuantity, o.consignmentQuantity))&&Objects.equal(consolidatableIndicator, o.consolidatableIndicator))&&Objects.equal(haulageInstructions, o.haulageInstructions))&&Objects.equal(loadingSequenceID, o.loadingSequenceID))&&Objects.equal(childConsignmentQuantity, o.childConsignmentQuantity))&&Objects.equal(totalPackagesQuantity, o.totalPackagesQuantity))&&Objects.equal(consolidatedShipment, o.consolidatedShipment))&&Objects.equal(customsDeclaration, o.customsDeclaration))&&Objects.equal(requestedPickupTransportEvent, o.requestedPickupTransportEvent))&&Objects.equal(requestedDeliveryTransportEvent, o.requestedDeliveryTransportEvent))&&Objects.equal(plannedPickupTransportEvent, o.plannedPickupTransportEvent))&&Objects.equal(plannedDeliveryTransportEvent, o.plannedDeliveryTransportEvent))&&Objects.equal(status, o.status))&&Objects.equal(childConsignment, o.childConsignment))&&Objects.equal(consigneeParty, o.consigneeParty))&&Objects.equal(exporterParty, o.exporterParty))&&Objects.equal(consignorParty, o.consignorParty))&&Objects.equal(importerParty, o.importerParty))&&Objects.equal(carrierParty, o.carrierParty))&&Objects.equal(freightForwarderParty, o.freightForwarderParty))&&Objects.equal(notifyParty, o.notifyParty))&&Objects.equal(originalDespatchParty, o.originalDespatchParty))&&Objects.equal(finalDeliveryParty, o.finalDeliveryParty))&&Objects.equal(performingCarrierParty, o.performingCarrierParty))&&Objects.equal(substituteCarrierParty, o.substituteCarrierParty))&&Objects.equal(logisticsOperatorParty, o.logisticsOperatorParty))&&Objects.equal(transportAdvisorParty, o.transportAdvisorParty))&&Objects.equal(hazardousItemNotificationParty, o.hazardousItemNotificationParty))&&Objects.equal(insuranceParty, o.insuranceParty))&&Objects.equal(mortgageHolderParty, o.mortgageHolderParty))&&Objects.equal(billOfLadingHolderParty, o.billOfLadingHolderParty))&&Objects.equal(originalDepartureCountry, o.originalDepartureCountry))&&Objects.equal(finalDestinationCountry, o.finalDestinationCountry))&&Objects.equal(transitCountry, o.transitCountry))&&Objects.equal(transportContract, o.transportContract))&&Objects.equal(transportEvent, o.transportEvent))&&Objects.equal(originalDespatchTransportationService, o.originalDespatchTransportationService))&&Objects.equal(finalDeliveryTransportationService, o.finalDeliveryTransportationService))&&Objects.equal(deliveryTerms, o.deliveryTerms))&&Objects.equal(paymentTerms, o.paymentTerms))&&Objects.equal(collectPaymentTerms, o.collectPaymentTerms))&&Objects.equal(disbursementPaymentTerms, o.disbursementPaymentTerms))&&Objects.equal(prepaidPaymentTerms, o.prepaidPaymentTerms))&&Objects.equal(freightAllowanceCharge, o.freightAllowanceCharge))&&Objects.equal(extraAllowanceCharge, o.extraAllowanceCharge))&&Objects.equal(mainCarriageShipmentStage, o.mainCarriageShipmentStage))&&Objects.equal(preCarriageShipmentStage, o.preCarriageShipmentStage))&&Objects.equal(onCarriageShipmentStage, o.onCarriageShipmentStage))&&Objects.equal(transportHandlingUnit, o.transportHandlingUnit))&&Objects.equal(firstArrivalPortLocation, o.firstArrivalPortLocation))&&Objects.equal(lastExitPortLocation, o.lastExitPortLocation));
}
 
開發者ID:AlnaSoftware,項目名稱:eSaskaita,代碼行數:15,代碼來源:ConsignmentType.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 StatementLineType o = ((StatementLineType) other);
    return (((((((((((((((((((((Objects.equal(id, o.id)&&Objects.equal(note, o.note))&&Objects.equal(uuid, o.uuid))&&Objects.equal(balanceBroughtForwardIndicator, o.balanceBroughtForwardIndicator))&&Objects.equal(debitLineAmount, o.debitLineAmount))&&Objects.equal(creditLineAmount, o.creditLineAmount))&&Objects.equal(balanceAmount, o.balanceAmount))&&Objects.equal(paymentPurposeCode, o.paymentPurposeCode))&&Objects.equal(paymentMeans, o.paymentMeans))&&Objects.equal(paymentTerms, o.paymentTerms))&&Objects.equal(buyerCustomerParty, o.buyerCustomerParty))&&Objects.equal(sellerSupplierParty, o.sellerSupplierParty))&&Objects.equal(originatorCustomerParty, o.originatorCustomerParty))&&Objects.equal(accountingCustomerParty, o.accountingCustomerParty))&&Objects.equal(accountingSupplierParty, o.accountingSupplierParty))&&Objects.equal(payeeParty, o.payeeParty))&&Objects.equal(invoicePeriod, o.invoicePeriod))&&Objects.equal(billingReference, o.billingReference))&&Objects.equal(documentReference, o.documentReference))&&Objects.equal(exchangeRate, o.exchangeRate))&&Objects.equal(allowanceCharge, o.allowanceCharge))&&Objects.equal(collectedPayment, o.collectedPayment));
}
 
開發者ID:AlnaSoftware,項目名稱:eSaskaita,代碼行數:15,代碼來源:StatementLineType.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 LanguageType o = ((LanguageType) other);
    return ((Objects.equal(id, o.id)&&Objects.equal(name, o.name))&&Objects.equal(localeCode, o.localeCode));
}
 
開發者ID:AlnaSoftware,項目名稱:eSaskaita,代碼行數:15,代碼來源:LanguageType.java

示例13: equals

import com.google.common.base.Objects; //導入方法依賴的package包/類
@Override
public boolean equals(Object obj)
{
    if (obj instanceof Delegate)
    {
        Delegate<?> other = (Delegate<?>) obj;
        return Objects.equal(other.name, name);
    }
    return false;
}
 
開發者ID:F1r3w477,項目名稱:CustomWorldGen,代碼行數:11,代碼來源:RegistryDelegate.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 IncludeType o = ((IncludeType) other);
    return (Objects.equal(uri, o.uri)&&Objects.equal(referencedData, o.referencedData));
}
 
開發者ID:AlnaSoftware,項目名稱:eSaskaita,代碼行數:15,代碼來源:IncludeType.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 LowerTenderAmountType o = ((LowerTenderAmountType) other);
    return ((Objects.equal(value, o.value)&&Objects.equal(currencyID, o.currencyID))&&Objects.equal(currencyCodeListVersionID, o.currencyCodeListVersionID));
}
 
開發者ID:AlnaSoftware,項目名稱:eSaskaita,代碼行數:15,代碼來源:LowerTenderAmountType.java


注:本文中的com.google.common.base.Objects.equal方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。