public boolean equals(Object value){
  if (this == value) {
    return true;
  }
 else   if (value != null && value instanceof FontDescription) {
    FontDescription other=(FontDescription)value;
    if (style != other.style)     return false;
    if (compactFontFormat != other.compactFontFormat)     return false;
    if (advancedAntiAliasing != other.advancedAntiAliasing)     return false;
    if (unicodeRanges == null && other.unicodeRanges != null)     return false;
    if (source == null && other.source != null)     return false;
    if (unicodeRanges != null && !unicodeRanges.equals(other.unicodeRanges))     return false;
    if (source != null && !source.equals(other.source))     return false;
    return true;
  }
  return false;
}

public boolean equals ( Object value ) { if ( this == value ) { return true ; } else if ( value != null && value instanceof FontDescription ) { FontDescription other = ( FontDescription ) value ; if ( style != other . style ) return false ; if ( compactFontFormat != other . compactFontFormat ) return false ; if ( advancedAntiAliasing != other . advancedAntiAliasing ) return false ; if ( unicodeRanges == null && other . unicodeRanges != null ) return false ; if ( source == null && other . source != null ) return false ; if ( unicodeRanges != null && ! unicodeRanges . equals ( other . unicodeRanges ) ) return false ; if ( source != null && ! source . equals ( other . source ) ) return false ; return true ; } return false ; }
tests whether another fontdescription describes the same font . note that the alias is not considered in the comparison .
