morfologik.fsa.characters
Class FSAImmutableSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<CharSequence>
          extended by morfologik.fsa.characters.FSAImmutableSet
All Implemented Interfaces:
Iterable<CharSequence>, Collection<CharSequence>, Set<CharSequence>

public class FSAImmutableSet
extends AbstractSet<CharSequence>

An immutable Set of CharSequences, backed by a deterministic finite state automaton.


Method Summary
 boolean add(CharSequence e)
           
 boolean addAll(Collection<? extends CharSequence> c)
           
 void clear()
           
 boolean contains(CharSequence o)
          Signature specification.
 boolean contains(Object o)
           
static FSAImmutableSet fromSorted(CharSequence... strings)
          Construct from already sorted data.
static FSAImmutableSet fromSorted(Iterable<CharSequence> strings)
          Construct from already sorted data.
static FSAImmutableSet fromUnsorted(CharSequence... strings)
          Construct from unsorted data (sorts all sequences).
static FSAImmutableSet fromUnsorted(Iterable<CharSequence> strings)
          Construct from unsorted data (sorts all sequences).
 boolean isEmpty()
           
 Iterator<CharSequence> iterator()
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 boolean retainAll(Collection<?> c)
           
 int size()
           
 
Methods inherited from class java.util.AbstractSet
equals, hashCode
 
Methods inherited from class java.util.AbstractCollection
containsAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
containsAll, toArray, toArray
 

Method Detail

fromSorted

public static FSAImmutableSet fromSorted(Iterable<CharSequence> strings)
Construct from already sorted data.


fromSorted

public static FSAImmutableSet fromSorted(CharSequence... strings)
Construct from already sorted data.


fromUnsorted

public static FSAImmutableSet fromUnsorted(CharSequence... strings)
Construct from unsorted data (sorts all sequences).


fromUnsorted

public static FSAImmutableSet fromUnsorted(Iterable<CharSequence> strings)
Construct from unsorted data (sorts all sequences).


contains

public boolean contains(Object o)
Specified by:
contains in interface Collection<CharSequence>
Specified by:
contains in interface Set<CharSequence>
Overrides:
contains in class AbstractCollection<CharSequence>

contains

public boolean contains(CharSequence o)
Signature specification.


iterator

public Iterator<CharSequence> iterator()
Specified by:
iterator in interface Iterable<CharSequence>
Specified by:
iterator in interface Collection<CharSequence>
Specified by:
iterator in interface Set<CharSequence>
Specified by:
iterator in class AbstractCollection<CharSequence>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<CharSequence>
Specified by:
isEmpty in interface Set<CharSequence>
Overrides:
isEmpty in class AbstractCollection<CharSequence>

size

public int size()
Specified by:
size in interface Collection<CharSequence>
Specified by:
size in interface Set<CharSequence>
Specified by:
size in class AbstractCollection<CharSequence>

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection<CharSequence>
Specified by:
remove in interface Set<CharSequence>
Overrides:
remove in class AbstractCollection<CharSequence>

removeAll

public boolean removeAll(Collection<?> c)
Specified by:
removeAll in interface Collection<CharSequence>
Specified by:
removeAll in interface Set<CharSequence>
Overrides:
removeAll in class AbstractSet<CharSequence>

retainAll

public boolean retainAll(Collection<?> c)
Specified by:
retainAll in interface Collection<CharSequence>
Specified by:
retainAll in interface Set<CharSequence>
Overrides:
retainAll in class AbstractCollection<CharSequence>

add

public boolean add(CharSequence e)
Specified by:
add in interface Collection<CharSequence>
Specified by:
add in interface Set<CharSequence>
Overrides:
add in class AbstractCollection<CharSequence>

addAll

public boolean addAll(Collection<? extends CharSequence> c)
Specified by:
addAll in interface Collection<CharSequence>
Specified by:
addAll in interface Set<CharSequence>
Overrides:
addAll in class AbstractCollection<CharSequence>

clear

public void clear()
Specified by:
clear in interface Collection<CharSequence>
Specified by:
clear in interface Set<CharSequence>
Overrides:
clear in class AbstractCollection<CharSequence>


Copyright © 2010. All Rights Reserved.