本文整理汇总了Java中com.helger.commons.equals.EqualsHelper.equals方法的典型用法代码示例。如果您正苦于以下问题:Java EqualsHelper.equals方法的具体用法?Java EqualsHelper.equals怎么用?Java EqualsHelper.equals使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.helger.commons.equals.EqualsHelper
的用法示例。
在下文中一共展示了EqualsHelper.equals方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: equals
import com.helger.commons.equals.EqualsHelper; //导入方法依赖的package包/类
@Override
public boolean equals (final Object o)
{
if (o == this)
return true;
if (o == null || !getClass ().equals (o.getClass ()))
return false;
final PModeLegReliability rhs = (PModeLegReliability) o;
return m_aCorrelation.equals (rhs.m_aCorrelation) &&
EqualsHelper.equals (m_eAtLeastOnceAckOnDelivery, rhs.m_eAtLeastOnceAckOnDelivery) &&
EqualsHelper.equals (m_eAtLeastOnceContract, rhs.m_eAtLeastOnceContract) &&
EqualsHelper.equals (m_eAtLeastOnceContractAckResponse, rhs.m_eAtLeastOnceContractAckResponse) &&
EqualsHelper.equals (m_sAtLeastOnceReplyPattern, rhs.m_sAtLeastOnceReplyPattern) &&
EqualsHelper.equals (m_eAtMostOnceContract, rhs.m_eAtMostOnceContract) &&
EqualsHelper.equals (m_eInOrderContract, rhs.m_eInOrderContract) &&
EqualsHelper.equals (m_eStartGroup, rhs.m_eStartGroup) &&
EqualsHelper.equals (m_eTerminateGroup, rhs.m_eTerminateGroup) &&
EqualsHelper.equals (m_sAtLeastOnceContractAcksTo, rhs.m_sAtLeastOnceContractAcksTo);
}
示例2: matchesBoolean
import com.helger.commons.equals.EqualsHelper; //导入方法依赖的package包/类
public static boolean matchesBoolean (@Nullable final Boolean aReferenceValue,
@Nonnull final ESearchOperator eOperator,
@Nullable final Boolean aSearchValue)
{
switch (eOperator)
{
case EQ:
return EqualsHelper.equals (aReferenceValue, aSearchValue);
case NE:
return !EqualsHelper.equals (aReferenceValue, aSearchValue);
case EMPTY:
return aReferenceValue == null;
case NOT_EMPTY:
return aReferenceValue != null;
default:
throw new IllegalArgumentException ("Unsupported Boolean search operator " + eOperator);
}
}
示例3: equals
import com.helger.commons.equals.EqualsHelper; //导入方法依赖的package包/类
@Override
public boolean equals (final Object o)
{
if (o == this)
return true;
if (o == null || !getClass ().equals (o.getClass ()))
return false;
final AS4DuplicateItem rhs = (AS4DuplicateItem) o;
return m_sMessageID.equals (rhs.m_sMessageID) &&
EqualsHelper.equals (m_sProfileID, rhs.m_sProfileID) &&
EqualsHelper.equals (m_sPModeID, rhs.m_sPModeID);
}
示例4: equals
import com.helger.commons.equals.EqualsHelper; //导入方法依赖的package包/类
@Override
public boolean equals (final Object o)
{
if (o == this)
return true;
if (o == null || !getClass ().equals (o.getClass ()))
return false;
final PModeParty rhs = (PModeParty) o;
return m_sIDType.equals (rhs.m_sIDType) &&
EqualsHelper.equals (m_sIDValue, rhs.m_sIDValue) &&
EqualsHelper.equals (m_sRole, rhs.m_sRole) &&
EqualsHelper.equals (m_sUserName, rhs.m_sUserName) &&
EqualsHelper.equals (m_sPassword, rhs.m_sPassword);
}
示例5: equals
import com.helger.commons.equals.EqualsHelper; //导入方法依赖的package包/类
@Override
public boolean equals (final Object o)
{
if (o == this)
return true;
if (o == null || !getClass ().equals (o.getClass ()))
return false;
final PModeProperty rhs = (PModeProperty) o;
return EqualsHelper.equals (m_sName, rhs.m_sName) &&
EqualsHelper.equals (m_sDescription, rhs.m_sDescription) &&
m_sDataType.equals (rhs.m_sDataType) &&
m_eMandatory.equals (rhs.m_eMandatory);
}
示例6: equals
import com.helger.commons.equals.EqualsHelper; //导入方法依赖的package包/类
@Override
public boolean equals (final Object o)
{
if (o == this)
return true;
if (o == null || !getClass ().equals (o.getClass ()))
return false;
final PModeLegSecurity rhs = (PModeLegSecurity) o;
return EqualsHelper.equals (m_aX509EncryptionEncryptElement, rhs.m_aX509EncryptionEncryptElement) &&
EqualsHelper.equals (m_aX509EncryptionEncryptAttachment, rhs.m_aX509EncryptionEncryptAttachment) &&
EqualsHelper.equals (m_aX509EncryptionMinimumStrength, rhs.m_aX509EncryptionMinimumStrength) &&
EqualsHelper.equals (m_aX509SignElement, rhs.m_aX509SignElement) &&
EqualsHelper.equals (m_aX509SignAttachment, rhs.m_aX509SignAttachment) &&
EqualsHelper.equals (m_ePModeAuthorize, rhs.m_ePModeAuthorize) &&
EqualsHelper.equals (m_eSendReceipt, rhs.m_eSendReceipt) &&
EqualsHelper.equals (m_eUsernameTokenCreated, rhs.m_eUsernameTokenCreated) &&
EqualsHelper.equals (m_eUsernameTokenDigest, rhs.m_eUsernameTokenDigest) &&
EqualsHelper.equals (m_eUsernameTokenNonce, rhs.m_eUsernameTokenNonce) &&
EqualsHelper.equals (m_eSendReceiptReplyPattern, rhs.m_eSendReceiptReplyPattern) &&
EqualsHelper.equals (m_sUsernameTokenPassword, rhs.m_sUsernameTokenPassword) &&
EqualsHelper.equals (m_sUsernameTokenUsername, rhs.m_sUsernameTokenUsername) &&
EqualsHelper.equals (m_eWSSVersion, rhs.m_eWSSVersion) &&
EqualsHelper.equals (m_eX509EncryptionAlgorithm, rhs.m_eX509EncryptionAlgorithm) &&
EqualsHelper.equals (m_sX509EncryptionCertificate, rhs.m_sX509EncryptionCertificate) &&
EqualsHelper.equals (m_eX509SignatureAlgorithm, rhs.m_eX509SignatureAlgorithm) &&
EqualsHelper.equals (m_sX509SignatureCertificate, rhs.m_sX509SignatureCertificate) &&
EqualsHelper.equals (m_eX509SignatureHashFunction, rhs.m_eX509SignatureHashFunction);
}
示例7: equals
import com.helger.commons.equals.EqualsHelper; //导入方法依赖的package包/类
@Override
public boolean equals (final Object o)
{
if (o == this)
return true;
if (o == null || !getClass ().equals (o.getClass ()))
return false;
final PModeLegErrorHandling rhs = (PModeLegErrorHandling) o;
return m_aReportReceiverErrorsTo.equals (rhs.m_aReportReceiverErrorsTo) &&
EqualsHelper.equals (m_aReportSenderErrorsTo, rhs.m_aReportSenderErrorsTo) &&
EqualsHelper.equals (m_eReportAsResponse, rhs.m_eReportAsResponse) &&
EqualsHelper.equals (m_eReportDeliveryFailuresNotifyProducer, rhs.m_eReportDeliveryFailuresNotifyProducer) &&
EqualsHelper.equals (m_eReportProcessErrorNotifyConsumer, rhs.m_eReportProcessErrorNotifyConsumer) &&
EqualsHelper.equals (m_eReportProcessErrorNotifyProducer, rhs.m_eReportProcessErrorNotifyProducer);
}
示例8: equals
import com.helger.commons.equals.EqualsHelper; //导入方法依赖的package包/类
@Override
public boolean equals (final Object o)
{
if (o == this)
return true;
if (o == null || !getClass ().equals (o.getClass ()))
return false;
final PModeLegProtocol rhs = (PModeLegProtocol) o;
return EqualsHelper.equals (m_sAddress, rhs.m_sAddress) && m_eSOAPVersion.equals (rhs.m_eSOAPVersion);
}
示例9: equals
import com.helger.commons.equals.EqualsHelper; //导入方法依赖的package包/类
@Override
public boolean equals (final Object o)
{
if (o == this)
return true;
if (o == null || !getClass ().equals (o.getClass ()))
return false;
final PModeLeg rhs = (PModeLeg) o;
return EqualsHelper.equals (m_aProtocol, rhs.m_aProtocol) &&
EqualsHelper.equals (m_aBusinessInfo, rhs.m_aBusinessInfo) &&
EqualsHelper.equals (m_aErrorHandling, rhs.m_aErrorHandling) &&
EqualsHelper.equals (m_aReliability, rhs.m_aReliability) &&
EqualsHelper.equals (m_aSecurity, rhs.m_aSecurity);
}
示例10: equals
import com.helger.commons.equals.EqualsHelper; //导入方法依赖的package包/类
@Override
public boolean equals (final Object o)
{
if (o == this)
return true;
if (o == null || !getClass ().equals (o.getClass ()))
return false;
final PModePayloadProfile rhs = (PModePayloadProfile) o;
return m_aMaxSizeKB.equals (rhs.m_aMaxSizeKB) &&
EqualsHelper.equals (m_aMimeType, rhs.m_aMimeType) &&
EqualsHelper.equals (m_eMandatory, rhs.m_eMandatory) &&
EqualsHelper.equals (m_sName, rhs.m_sName) &&
EqualsHelper.equals (m_sXSDFilename, rhs.m_sXSDFilename);
}
示例11: equals
import com.helger.commons.equals.EqualsHelper; //导入方法依赖的package包/类
@Override
public boolean equals (final Object o)
{
if (o == this)
return true;
if (o == null || !getClass ().equals (o.getClass ()))
return false;
final PModeLegBusinessInformation rhs = (PModeLegBusinessInformation) o;
return m_aPayloadProfiles.equals (rhs.m_aPayloadProfiles) &&
EqualsHelper.equals (m_aProperties, rhs.m_aProperties) &&
EqualsHelper.equals (m_nPayloadProfileMaxKB, rhs.m_nPayloadProfileMaxKB) &&
EqualsHelper.equals (m_sAction, rhs.m_sAction) &&
EqualsHelper.equals (m_sMPCID, rhs.m_sMPCID) &&
EqualsHelper.equals (m_sService, rhs.m_sService);
}
示例12: getPModeFilter
import com.helger.commons.equals.EqualsHelper; //导入方法依赖的package包/类
@Nonnull
public static Predicate <IPMode> getPModeFilter (@Nonnull final String sID,
@Nullable final String sInitiatorID,
@Nullable final String sResponderID)
{
return p -> p.getID ().equals (sID) &&
EqualsHelper.equals (p.getInitiatorID (), sInitiatorID) &&
EqualsHelper.equals (p.getResponderID (), sResponderID);
}
示例13: equals
import com.helger.commons.equals.EqualsHelper; //导入方法依赖的package包/类
@Override
public boolean equals (final Object o)
{
if (o == this)
return true;
if (o == null || !getClass ().equals (o.getClass ()))
return false;
final ParserQName rhs = (ParserQName) o;
return EqualsHelper.equals (m_sPrefix, rhs.m_sPrefix) && m_sLocalName.equals (rhs.m_sLocalName);
}
示例14: equals
import com.helger.commons.equals.EqualsHelper; //导入方法依赖的package包/类
@Override
public boolean equals (final Object o)
{
if (o == this)
return true;
if (o == null || !getClass ().equals (o.getClass ()))
return false;
final STXSourceLocation rhs = (STXSourceLocation) o;
return EqualsHelper.equals (m_aFirstTokenArea, rhs.m_aFirstTokenArea) &&
EqualsHelper.equals (m_aLastTokenArea, rhs.m_aLastTokenArea);
}
示例15: matchesDouble
import com.helger.commons.equals.EqualsHelper; //导入方法依赖的package包/类
public static boolean matchesDouble (@Nullable final BigDecimal aReferenceValue,
@Nonnull final ESearchOperator eOperator,
@Nullable final Object aSearchValue)
{
switch (eOperator)
{
case EQ:
return EqualsHelper.equals (aReferenceValue, TypeConverter.convert (aSearchValue, BigDecimal.class));
case NE:
return !EqualsHelper.equals (aReferenceValue,
TypeConverter.convert (aSearchValue, BigDecimal.class));
case LT:
return CompareHelper.compare (TypeConverter.convert (aSearchValue, BigDecimal.class),
aReferenceValue) < 0;
case LE:
return CompareHelper.compare (TypeConverter.convert (aSearchValue, BigDecimal.class),
aReferenceValue) <= 0;
case GT:
return CompareHelper.compare (TypeConverter.convert (aSearchValue, BigDecimal.class),
aReferenceValue) > 0;
case GE:
return CompareHelper.compare (TypeConverter.convert (aSearchValue, BigDecimal.class),
aReferenceValue) >= 0;
case EMPTY:
return aReferenceValue == null;
case NOT_EMPTY:
return aReferenceValue != null;
case STRING_CONTAINS:
case STRING_STARTS_WITH:
case STRING_ENDS_WITH:
case STRING_REGEX:
// Use string version :)
return matchesString (aReferenceValue == null ? null : aReferenceValue.toString (),
eOperator,
TypeConverter.convert (aSearchValue, String.class));
default:
throw new IllegalArgumentException ("Unsupported double search operator " + eOperator);
}
}