本文整理匯總了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));
}