com.yahoo.language.simple.kstem.CharArraySet Maven / Gradle / Ivy
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
/*
* This is adapted from the Lucene code base which is Copyright 2008 Apache Software Foundation and Licensed
* under the terms of the Apache License, Version 2.0.
*/
package com.yahoo.language.simple.kstem;
import java.util.AbstractSet;
import java.util.Collection;
import java.util.Iterator;
import java.util.Set;
/**
* A simple class that stores Strings as char[]'s in a
* hash table. Note that this is not a general purpose
* class. For example, it cannot remove items from the
* set, nor does it resize its hash table to be smaller,
* etc. It is designed to be quick to test if a char[]
* is in the set without the necessity of converting it
* to a String first.
*
*
* Please note: This class implements {@link java.util.Set Set} but
* does not behave like it should in all cases. The generic type is
* {@code Set
© 2015 - 2024 Weber Informatics LLC | Privacy Policy