/*
**********************************************************************
- * Copyright (c) 2002-2010, Google, International Business Machines
+ * Copyright (c) 2002-2011, Google, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* Author: Mark Davis
}
public boolean equals(Object other) {
+ if (other == null) {
+ return false;
+ }
+ if (this == other) {
+ return true;
+ }
try {
Row<C0, C1, C2, C3, C4> that = (Row<C0, C1, C2, C3, C4>)other;
if (items.length != that.items.length) {
public boolean equals(Object that) {
// compare class and all of the fields all substitutions have
// in common
+ if (that == null) {
+ return false;
+ }
+ if (this == that) {
+ return true;
+ }
if (this.getClass() == that.getClass()) {
NFSubstitution that2 = (NFSubstitution)that;
* @stable ICU 2.0
*/
public boolean equals(Object that) {
+ if (that == null) {
+ return false;
+ }
+ if (this == that) {
+ return true;
+ }
try {
RuleBasedBreakIterator other = (RuleBasedBreakIterator) that;
if (fRData != other.fRData && (fRData == null || other.fRData == null)) {System.out.println("GOT HERE");
* @stable ICU 2.0
*/
public boolean equals(Object o) {
+ if (o == null) {
+ return false;
+ }
+ if (this == o) {
+ return true;
+ }
try {
UnicodeSet that = (UnicodeSet) o;
if (len != that.len) return false;
* @stable ICU 2.0
*/
public boolean equals(Object obj) {
+ if (obj == null) {
+ return false;
+ }
if (this == obj) {
return true;
}
/**
*******************************************************************************
- * Copyright (C) 2001-2007, International Business Machines Corporation and *
+ * Copyright (C) 2001-2011, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
* @stable ICU 2.0
*/
public boolean equals(Object o) {
+ if (o == null) {
+ return false;
+ }
+ if (this == o) {
+ return true;
+ }
getFolded();
-
try {
CaseInsensitiveString cis = (CaseInsensitiveString) o;
*/
@Override
public boolean equals(final Object o) {
+ if (o == null) {
+ return false;
+ }
+ if (this == o) {
+ return true;
+ }
try {
final LocalePriorityList that = (LocalePriorityList) o;
return languagesAndWeights.equals(that.languagesAndWeights);
private int hashCodeCache;
///CLOVER:OFF
public boolean equals(Object other) {
+ if (other == null) {
+ return false;
+ }
if (this == other) {
return true;
}