• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java EqualsHelper类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.helger.commons.equals.EqualsHelper的典型用法代码示例。如果您正苦于以下问题:Java EqualsHelper类的具体用法?Java EqualsHelper怎么用?Java EqualsHelper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



EqualsHelper类属于com.helger.commons.equals包,在下文中一共展示了EqualsHelper类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
}
 
开发者ID:phax,项目名称:ph-as4,代码行数:20,代码来源:PModeLegReliability.java


示例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;
  });
}
 
开发者ID:phax,项目名称:ph-as4,代码行数:17,代码来源:PModeManager.java


示例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);
  }
}
 
开发者ID:phax,项目名称:peppol-directory,代码行数:19,代码来源:SearchMatcher.java


示例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;
}
 
开发者ID:phax,项目名称:ph-commons,代码行数:27,代码来源:XMLWriterSettings.java


示例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;
}
 
开发者ID:phax,项目名称:ph-masterdata,代码行数:29,代码来源:ExtendedEmailAddress.java


示例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);
}
 
开发者ID:phax,项目名称:ph-masterdata,代码行数:19,代码来源:PostalAddress.java


示例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);
}
 
开发者ID:phax,项目名称:ph-as4,代码行数:13,代码来源:AS4DuplicateItem.java


示例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);
}
 
开发者ID:phax,项目名称:ph-as4,代码行数:15,代码来源:PModeParty.java


示例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);
}
 
开发者ID:phax,项目名称:ph-as4,代码行数:14,代码来源:PModeProperty.java


示例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);
}
 
开发者ID:phax,项目名称:ph-as4,代码行数:29,代码来源:PModeLegSecurity.java


示例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);
}
 
开发者ID:phax,项目名称:ph-as4,代码行数:16,代码来源:PModeLegErrorHandling.java


示例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);
}
 
开发者ID:phax,项目名称:ph-as4,代码行数:11,代码来源:PModeLegProtocol.java


示例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);
}
 
开发者ID:phax,项目名称:ph-as4,代码行数:15,代码来源:PModeLeg.java


示例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);
}
 
开发者ID:phax,项目名称:ph-as4,代码行数:15,代码来源:PModePayloadProfile.java


示例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);
}
 
开发者ID:phax,项目名称:ph-as4,代码行数:16,代码来源:PModeLegBusinessInformation.java


示例16: 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);
}
 
开发者ID:phax,项目名称:ph-as4,代码行数:10,代码来源:PModeManager.java


示例17: 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);
}
 
开发者ID:phax,项目名称:ph-stx,代码行数:11,代码来源:ParserQName.java


示例18: 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);
}
 
开发者ID:phax,项目名称:ph-stx,代码行数:12,代码来源:STXSourceLocation.java


示例19: 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);
  }
}
 
开发者ID:phax,项目名称:peppol-directory,代码行数:40,代码来源:SearchMatcher.java


示例20: matchesTime

import com.helger.commons.equals.EqualsHelper; //导入依赖的package包/类
public static boolean matchesTime (@Nullable final LocalTime aReferenceValue,
                                   @Nonnull final ESearchOperator eOperator,
                                   @Nullable final Object aSearchValue)
{
  switch (eOperator)
  {
    case EQ:
      return EqualsHelper.equals (aReferenceValue, aSearchValue);
    case NE:
      return !EqualsHelper.equals (aReferenceValue, aSearchValue);
    case LT:
      return CompareHelper.compare (TypeConverter.convert (aSearchValue, LocalTime.class),
                                    aReferenceValue) < 0;
    case LE:
      return CompareHelper.compare (TypeConverter.convert (aSearchValue, LocalTime.class),
                                    aReferenceValue) <= 0;
    case GT:
      return CompareHelper.compare (TypeConverter.convert (aSearchValue, LocalTime.class),
                                    aReferenceValue) > 0;
    case GE:
      return CompareHelper.compare (TypeConverter.convert (aSearchValue, LocalTime.class),
                                    aReferenceValue) >= 0;
    case EMPTY:
      return aReferenceValue == null;
    case NOT_EMPTY:
      return aReferenceValue != null;
    case TIME_HOUR:
      return aReferenceValue != null && aReferenceValue.getHour () == TypeConverter.convertToInt (aSearchValue);
    case TIME_MINUTE:
      return aReferenceValue != null && aReferenceValue.getMinute () == TypeConverter.convertToInt (aSearchValue);
    case TIME_SECOND:
      return aReferenceValue != null && aReferenceValue.getSecond () == TypeConverter.convertToInt (aSearchValue);
    default:
      throw new IllegalArgumentException ("Unsupported LocalTime search operator " + eOperator);
  }
}
 
开发者ID:phax,项目名称:peppol-directory,代码行数:37,代码来源:SearchMatcher.java



注:本文中的com.helger.commons.equals.EqualsHelper类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Fragment类代码示例发布时间:2022-05-22
下一篇:
Java Encoder类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap