本文整理汇总了Java中com.helger.commons.equals.EqualsHelper类的典型用法代码示例。如果您正苦于以下问题:Java EqualsHelper类的具体用法?Java EqualsHelper怎么用?Java EqualsHelper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EqualsHelper类属于com.helger.commons.equals包,在下文中一共展示了EqualsHelper类的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: getPModeOfServiceAndAction
import com.helger.commons.equals.EqualsHelper; //导入依赖的package包/类
@Nullable
public IPMode getPModeOfServiceAndAction (@Nullable final String sService, @Nullable final String sAction)
{
return findFirst (x -> {
final PModeLeg aLeg = x.getLeg1 ();
if (aLeg != null)
{
final PModeLegBusinessInformation aBI = aLeg.getBusinessInfo ();
if (aBI != null)
{
return EqualsHelper.equals (aBI.getService (), sService) && EqualsHelper.equals (aBI.getAction (), sAction);
}
}
return false;
});
}
示例3: 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);
}
}
示例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 XMLWriterSettings rhs = (XMLWriterSettings) o;
// namespace context does not necessarily implement equals/hashCode
return m_eXMLVersion.equals (rhs.m_eXMLVersion) &&
m_eSerializeXMLDecl.equals (rhs.m_eSerializeXMLDecl) &&
m_eSerializeDocType.equals (rhs.m_eSerializeDocType) &&
m_eSerializeComments.equals (rhs.m_eSerializeComments) &&
m_eIndent.equals (rhs.m_eIndent) &&
m_aIndentDeterminator.equals (rhs.m_aIndentDeterminator) &&
m_eIncorrectCharacterHandling.equals (rhs.m_eIncorrectCharacterHandling) &&
m_aCharset.equals (rhs.m_aCharset) &&
EqualsHelper.equals (m_aNamespaceContext, rhs.m_aNamespaceContext) &&
m_bUseDoubleQuotesForAttributes == rhs.m_bUseDoubleQuotesForAttributes &&
m_aBracketModeDeterminator.equals (rhs.m_aBracketModeDeterminator) &&
m_bSpaceOnSelfClosedElement == rhs.m_bSpaceOnSelfClosedElement &&
m_eNewLineMode.equals (rhs.m_eNewLineMode) &&
m_sIndentationString.equals (rhs.m_sIndentationString) &&
m_bEmitNamespaces == rhs.m_bEmitNamespaces &&
m_bPutNamespaceContextPrefixesInRoot == rhs.m_bPutNamespaceContextPrefixesInRoot;
}
示例5: setAddress
import com.helger.commons.equals.EqualsHelper; //导入依赖的package包/类
/**
* Set the address part of the email address. Performs a validity check of the
* email address.
*
* @param sAddress
* The address part to be set.
* @return {@link EChange#CHANGED} if the address was valid and different from
* the existing one. Returns {@link EChange#UNCHANGED} if the email
* address was the same as before, or the email address itself was
* invalid.
*/
@Nonnull
public EChange setAddress (@Nullable final String sAddress)
{
final String sRealAddress = EmailAddressHelper.getUnifiedEmailAddress (sAddress);
if (EqualsHelper.equals (sRealAddress, m_sAddress))
return EChange.UNCHANGED;
// Check only without MX record check here, because this is a performance
// bottleneck when having multiple customers
if (sRealAddress != null && !EmailAddressHelper.isValid (sRealAddress))
{
s_aLogger.error ("Found an illegal email address: '" + sRealAddress + "'");
return EChange.UNCHANGED;
}
m_sAddress = sRealAddress;
return EChange.CHANGED;
}
示例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 PostalAddress rhs = (PostalAddress) o;
return EqualsHelper.equals (m_aAddressType, rhs.m_aAddressType) &&
EqualsHelper.equals (m_sCountry, rhs.m_sCountry) &&
EqualsHelper.equals (m_sState, rhs.m_sState) &&
EqualsHelper.equals (m_sPostalCode, rhs.m_sPostalCode) &&
EqualsHelper.equals (m_sCity, rhs.m_sCity) &&
EqualsHelper.equals (m_sStreet, rhs.m_sStreet) &&
EqualsHelper.equals (m_sBuildingNumber, rhs.m_sBuildingNumber) &&
EqualsHelper.equals (m_sPostOfficeBox, rhs.m_sPostOfficeBox) &&
EqualsHelper.equals (m_sCareOf, rhs.m_sCareOf);
}
示例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 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);
}
示例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 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);
}
示例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 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);
}
示例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 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);
}
示例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 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);
}
示例12: 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);
}
示例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 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);
}
示例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 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);
}
示例15: 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);
}