@Override public int hashCode() { final int prime= 31; int result= 1; result= prime * result + ByteArrayWrapper.hashCode(byteArray); return result; }
public final int compareTo(Object object) { final RankedWordProposal word= (RankedWordProposal)object; final int rank= word.getRank(); if (fRank < rank) return -1; if (fRank > rank) return 1; return 0; }
/** * Shuts down the singleton instance of the spell check engine. */ public static final synchronized void shutdownInstance() { if (fgEngine != null) { fgEngine.shutdown(); fgEngine= null; } }
/** * Returns <code>true</code> iff the corresponding word was found in the dictionary. * <p> * NOTE: to be removed, see {@link #getProposals()} * </p> * * @return <code>true</code> iff the corresponding word was found in the dictionary */ public boolean isDictionaryMatch() { return fSpellEvent.isMatch(); }
/** * Returns <code>true</code> iff the corresponding word starts a sentence. * <p> * NOTE: to be removed, see {@link #getProposals()} * </p> * * @return <code>true</code> iff the corresponding word starts a sentence */ public boolean isSentenceStart() { return fSpellEvent.isStart(); }
public synchronized final Locale getLocale() { if (fChecker == null) return null; return fChecker.getLocale(); }
@Override public final int compareTo(RankedWordProposal word) { final int rank= word.getRank(); if (fRank < rank) return -1; if (fRank > rank) return 1; return 0; }
/** * Shuts down the singleton instance of the spell check engine. */ public static synchronized final void shutdownInstance() { if (fgEngine != null) { fgEngine.shutdown(); fgEngine= null; } }
/** * Returns <code>true</code> iff the corresponding word was found in the dictionary. * <p> * NOTE: to be removed, see {@link #getProposals()} * </p> * * @return <code>true</code> iff the corresponding word was found in the dictionary */ public boolean isDictionaryMatch() { return fSpellEvent.isMatch(); }
/** * Returns <code>true</code> iff the corresponding word starts a sentence. * <p> * NOTE: to be removed, see {@link #getProposals()} * </p> * * @return <code>true</code> iff the corresponding word starts a sentence */ public boolean isSentenceStart() { return fSpellEvent.isStart(); }
@Override public synchronized final Locale getLocale() { if (fChecker == null) return null; return fChecker.getLocale(); }
@Override public int hashCode() { final int prime= 31; int result= 1; result= prime * result + ByteArrayWrapper.hashCode(byteArray); return result; }
@Override public final int compareTo(RankedWordProposal word) { final int rank= word.getRank(); if (fRank < rank) return -1; if (fRank > rank) return 1; return 0; }
/** * Shuts down the singleton instance of the spell check engine. */ public static synchronized final void shutdownInstance() { if (fgEngine != null) { fgEngine.shutdown(); fgEngine= null; } }
/** * Returns <code>true</code> iff the corresponding word was found in the dictionary. * <p> * NOTE: to be removed, see {@link #getProposals()} * </p> * * @return <code>true</code> iff the corresponding word was found in the dictionary */ public boolean isDictionaryMatch() { return fSpellEvent.isMatch(); }
/** * Returns <code>true</code> iff the corresponding word starts a sentence. * <p> * NOTE: to be removed, see {@link #getProposals()} * </p> * * @return <code>true</code> iff the corresponding word starts a sentence */ public boolean isSentenceStart() { return fSpellEvent.isStart(); }
@Override public synchronized final Locale getLocale() { if (fChecker == null) return null; return fChecker.getLocale(); }