javax.xml.datatype.XMLGregorianCalendar.equals()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(7.5k)|赞(0)|评价(0)|浏览(107)

本文整理了Java中javax.xml.datatype.XMLGregorianCalendar.equals()方法的一些代码示例,展示了XMLGregorianCalendar.equals()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLGregorianCalendar.equals()方法的具体详情如下:
包路径:javax.xml.datatype.XMLGregorianCalendar
类名称:XMLGregorianCalendar
方法名:equals

XMLGregorianCalendar.equals介绍

[英]Indicates whether parameter obj is "equal to" this one.
[中]指示参数obj是否“等于”此参数。

代码示例

代码示例来源:origin: geotools/geotools

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public boolean eIsSet(int featureID) {
  switch (featureID) {
    case Gml311Package.TIME_CLOCK_TYPE__REFERENCE_EVENT:
      return referenceEvent != null;
    case Gml311Package.TIME_CLOCK_TYPE__REFERENCE_TIME:
      return REFERENCE_TIME_EDEFAULT == null ? referenceTime != null : !REFERENCE_TIME_EDEFAULT.equals(referenceTime);
    case Gml311Package.TIME_CLOCK_TYPE__UTC_REFERENCE:
      return UTC_REFERENCE_EDEFAULT == null ? utcReference != null : !UTC_REFERENCE_EDEFAULT.equals(utcReference);
    case Gml311Package.TIME_CLOCK_TYPE__DATE_BASIS:
      return dateBasis != null && !dateBasis.isEmpty();
  }
  return super.eIsSet(featureID);
}

代码示例来源:origin: geotools/geotools

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public boolean eIsSet(int featureID) {
  switch (featureID) {
    case Gml311Package.TEMPORAL_DATUM_TYPE__ORIGIN:
      return ORIGIN_EDEFAULT == null ? origin != null : !ORIGIN_EDEFAULT.equals(origin);
  }
  return super.eIsSet(featureID);
}

代码示例来源:origin: geotools/geotools

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public boolean eIsSet(int featureID) {
  switch (featureID) {
    case Fes20Package.RESOURCE_ID_TYPE__END_DATE:
      return END_DATE_EDEFAULT == null ? endDate != null : !END_DATE_EDEFAULT.equals(endDate);
    case Fes20Package.RESOURCE_ID_TYPE__PREVIOUS_RID:
      return PREVIOUS_RID_EDEFAULT == null ? previousRid != null : !PREVIOUS_RID_EDEFAULT.equals(previousRid);
    case Fes20Package.RESOURCE_ID_TYPE__RID:
      return RID_EDEFAULT == null ? rid != null : !RID_EDEFAULT.equals(rid);
    case Fes20Package.RESOURCE_ID_TYPE__START_DATE:
      return START_DATE_EDEFAULT == null ? startDate != null : !START_DATE_EDEFAULT.equals(startDate);
    case Fes20Package.RESOURCE_ID_TYPE__VERSION:
      return VERSION_EDEFAULT == null ? version != null : !VERSION_EDEFAULT.equals(version);
  }
  return super.eIsSet(featureID);
}

代码示例来源:origin: geotools/geotools

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public boolean eIsSet(int featureID) {
  switch (featureID) {
    case Gml311Package.ABSTRACT_DATUM_TYPE__DATUM_ID:
      return datumID != null && !datumID.isEmpty();
    case Gml311Package.ABSTRACT_DATUM_TYPE__REMARKS:
      return remarks != null;
    case Gml311Package.ABSTRACT_DATUM_TYPE__ANCHOR_POINT:
      return anchorPoint != null;
    case Gml311Package.ABSTRACT_DATUM_TYPE__REALIZATION_EPOCH:
      return REALIZATION_EPOCH_EDEFAULT == null ? realizationEpoch != null : !REALIZATION_EPOCH_EDEFAULT.equals(realizationEpoch);
    case Gml311Package.ABSTRACT_DATUM_TYPE__VALID_AREA:
      return validArea != null;
    case Gml311Package.ABSTRACT_DATUM_TYPE__SCOPE:
      return SCOPE_EDEFAULT == null ? scope != null : !SCOPE_EDEFAULT.equals(scope);
  }
  return super.eIsSet(featureID);
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore

@Override
public boolean equals(Object object)
{
 return 
  object instanceof XMLCalendar ? 
    xmlGregorianCalendar.equals(((XMLCalendar)object).xmlGregorianCalendar) :
    object instanceof XMLGregorianCalendar && xmlGregorianCalendar.equals(object);
}

代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore

@Override
public boolean equals(Object object)
{
 return 
  object instanceof XMLCalendar ? 
    xmlGregorianCalendar.equals(((XMLCalendar)object).xmlGregorianCalendar) :
    object instanceof XMLGregorianCalendar && xmlGregorianCalendar.equals(object);
}

代码示例来源:origin: ORCID/ORCID-Source

@Override
public boolean equals(Object o) {
  if (this == o)
    return true;
  if (o == null || getClass() != o.getClass())
    return false;
  LastModifiedDate that = (LastModifiedDate) o;
  if (value != null ? !value.equals(that.value) : that.value != null)
    return false;
  return true;
}

代码示例来源:origin: ORCID/ORCID-Source

@Override
public boolean equals(Object o) {
  if (this == o)
    return true;
  if (o == null || getClass() != o.getClass())
    return false;
  SubmissionDate that = (SubmissionDate) o;
  if (value != null ? !value.equals(that.value) : that.value != null)
    return false;
  return true;
}

代码示例来源:origin: ORCID/ORCID-Source

@Override
public boolean equals(Object o) {
  if (this == o)
    return true;
  if (o == null || getClass() != o.getClass())
    return false;
  LastModifiedDate that = (LastModifiedDate) o;
  if (value != null ? !value.equals(that.value) : that.value != null)
    return false;
  return true;
}

代码示例来源:origin: ORCID/ORCID-Source

@Override
public boolean equals(Object o) {
  if (this == o)
    return true;
  if (o == null || getClass() != o.getClass())
    return false;
  LastModifiedDate that = (LastModifiedDate) o;
  if (value != null ? !value.equals(that.value) : that.value != null)
    return false;
  return true;
}

代码示例来源:origin: ORCID/ORCID-Source

@Override
public boolean equals(Object o) {
  if (this == o)
    return true;
  if (o == null || getClass() != o.getClass())
    return false;
  LastModifiedDate that = (LastModifiedDate) o;
  if (value != null ? !value.equals(that.value) : that.value != null)
    return false;
  return true;
}

代码示例来源:origin: ORCID/ORCID-Source

@Override
public boolean equals(Object o) {
  if (this == o)
    return true;
  if (o == null || getClass() != o.getClass())
    return false;
  LastModifiedDate that = (LastModifiedDate) o;
  if (value != null ? !value.equals(that.value) : that.value != null)
    return false;
  return true;
}

代码示例来源:origin: ORCID/ORCID-Source

@Override
public boolean equals(Object o) {
  if (this == o)
    return true;
  if (o == null || getClass() != o.getClass())
    return false;
  DeprecatedDate that = (DeprecatedDate) o;
  if (value != null ? !value.equals(that.value) : that.value != null)
    return false;
  return true;
}

代码示例来源:origin: ORCID/ORCID-Source

@Override
public boolean equals(Object o) {
  if (this == o)
    return true;
  if (o == null || getClass() != o.getClass())
    return false;
  CreatedDate that = (CreatedDate) o;
  if (value != null ? !value.equals(that.value) : that.value != null)
    return false;
  return true;
}

代码示例来源:origin: ORCID/ORCID-Source

@Override
public boolean equals(Object o) {
  if (this == o)
    return true;
  if (o == null || getClass() != o.getClass())
    return false;
  CreatedDate that = (CreatedDate) o;
  if (value != null ? !value.equals(that.value) : that.value != null)
    return false;
  return true;
}

代码示例来源:origin: ORCID/ORCID-Source

@Override
public boolean equals(Object o) {
  if (this == o)
    return true;
  if (o == null || getClass() != o.getClass())
    return false;
  CompletionDate that = (CompletionDate) o;
  if (value != null ? !value.equals(that.value) : that.value != null)
    return false;
  return true;
}

代码示例来源:origin: ORCID/ORCID-Source

@Override
public boolean equals(Object o) {
  if (this == o)
    return true;
  if (o == null || getClass() != o.getClass())
    return false;
  DeactivationDate that = (DeactivationDate) o;
  if (value != null ? !value.equals(that.value) : that.value != null)
    return false;
  return true;
}

代码示例来源:origin: ORCID/ORCID-Source

@Override
public boolean equals(Object o) {
  if (this == o)
    return true;
  if (o == null || getClass() != o.getClass())
    return false;
  DeactivationDate that = (DeactivationDate) o;
  if (value != null ? !value.equals(that.value) : that.value != null)
    return false;
  return true;
}

代码示例来源:origin: ORCID/ORCID-Source

@Override
public boolean equals(Object o) {
  if (this == o)
    return true;
  if (o == null || getClass() != o.getClass())
    return false;
  CreatedDate that = (CreatedDate) o;
  if (value != null ? !value.equals(that.value) : that.value != null)
    return false;
  return true;
}

代码示例来源:origin: geotools/geotools

return getOrientableSurface() != null;
case Gml311Package.DOCUMENT_ROOT__ORIGIN:
  return ORIGIN_EDEFAULT == null ? getOrigin() != null : !ORIGIN_EDEFAULT.equals(getOrigin());
case Gml311Package.DOCUMENT_ROOT__OUTER_BOUNDARY_IS:
  return getOuterBoundaryIs() != null;
  return getRangeSet() != null;
case Gml311Package.DOCUMENT_ROOT__REALIZATION_EPOCH:
  return REALIZATION_EPOCH_EDEFAULT == null ? getRealizationEpoch() != null : !REALIZATION_EPOCH_EDEFAULT.equals(getRealizationEpoch());
case Gml311Package.DOCUMENT_ROOT__RECTANGLE:
  return getRectangle() != null;

相关文章