当前位置: 首页>>代码示例>>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;未经允许,请勿转载。