gpt4 book ai didi

cesiumlanguagewriter.YearMonthDay.equalsType()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-17 14:21:31 28 4
gpt4 key购买 nike

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

YearMonthDay.equalsType介绍

[英]Indicates whether another instance of this type is exactly equal to this instance.
[中]指示此类型的另一个实例是否与此实例完全相同。

代码示例

代码示例来源:origin: AnalyticalGraphicsInc/czml-writer

/**
*  
Indicates whether another object is exactly equal to this instance.


* @param obj The object to compare to this instance.
* @return {@code true} if {@code obj} is an instance of this type and represents the same value as this instance; otherwise, {@code false}.
*/
@Override
public boolean equals(Object obj) {
  return obj instanceof YearMonthDay && equalsType((YearMonthDay) obj);
}

代码示例来源:origin: AnalyticalGraphicsInc/czml-writer

/**
*  
Returns {@code true} if the two instances are exactly equal.



* @param left The instance to compare to {@code right}.
* @param right The instance to compare to {@code left}.
* @return 
{@code true} if {@code left} represents the same value as {@code right}; otherwise, {@code false}.

*/
@CS2JInfo("This method implements the functionality of the overloaded operator: 'System.Boolean ==(YearMonthDay,YearMonthDay)'")
public static boolean equals(@Nonnull YearMonthDay left, @Nonnull YearMonthDay right) {
  return left.equalsType(right);
}

代码示例来源:origin: AnalyticalGraphicsInc/czml-writer

/**
*  
Returns {@code true} if the two instances are not exactly equal.



* @param left The instance to compare to {@code right}.
* @param right The instance to compare to {@code left}.
* @return 
{@code true} if {@code left} does not represent the same value as {@code right}; otherwise, {@code false}.

*/
@CS2JInfo("This method implements the functionality of the overloaded operator: 'System.Boolean !=(YearMonthDay,YearMonthDay)'")
public static boolean notEquals(@Nonnull YearMonthDay left, @Nonnull YearMonthDay right) {
  return !left.equalsType(right);
}

代码示例来源:origin: AnalyticalGraphicsInc/czml-writer

YearMonthDay second = new YearMonthDay(2000, 1, 1);
AssertHelper.assertEquals(first, second);
Assert.assertTrue(first.equalsType(second));
Assert.assertTrue(second.equalsType(first));
Assert.assertEquals((int) 0, (int) first.compareTo(second));
Assert.assertEquals((int) 0, (int) second.compareTo(first));
second = new YearMonthDay(2001, 1, 1);
AssertHelper.assertNotEqual(first, second);
Assert.assertFalse(first.equalsType(second));
Assert.assertFalse(second.equalsType(first));
AssertHelper.assertNotEqual(0, first.compareTo(second));
AssertHelper.assertNotEqual(0, second.compareTo(first));
second = new YearMonthDay(2000, 2, 1);
AssertHelper.assertNotEqual(first, second);
Assert.assertFalse(first.equalsType(second));
Assert.assertFalse(second.equalsType(first));
AssertHelper.assertNotEqual(0, first.compareTo(second));
AssertHelper.assertNotEqual(0, second.compareTo(first));
second = new YearMonthDay(2000, 1, 2);
AssertHelper.assertNotEqual(first, second);
Assert.assertFalse(first.equalsType(second));
Assert.assertFalse(second.equalsType(first));
AssertHelper.assertNotEqual(0, first.compareTo(second));
AssertHelper.assertNotEqual(0, second.compareTo(first));

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com