public int hashCode(){
  return font.hashCode() ^ glyphs.length;
}

public int hashCode ( ) { return font . hashCode ( ) ^ glyphs . length ; }
as a concrete subclass of object that implements equality , this must implement hashcode .
