com.hankcs.hanlp.collection.MDAG
类 MDAGSet

java.lang.Object
  继承者 com.hankcs.hanlp.collection.MDAG.MDAG
      继承者 com.hankcs.hanlp.collection.MDAG.MDAGSet
所有已实现的接口:
ICacheAble, Iterable<String>, Collection<String>, Set<String>
直接已知子类:
StopWordDictionary

public class MDAGSet
extends MDAG
implements Set<String>

基于MDAG(又称DAWG,Minimal Acyclic Finite-State Automata)的String Set

作者:
hankcs

字段摘要
 
从类 com.hankcs.hanlp.collection.MDAG.MDAG 继承的字段
charTreeSet, equivalenceClassMDAGNodeHashMap, mdagDataArray, simplifiedSourceNode, sourceNode, transitionCount
 
构造方法摘要
MDAGSet()
           
MDAGSet(Collection<String> strCollection)
           
MDAGSet(File dataFile)
           
 
方法摘要
 boolean add(String s)
           
 boolean addAll(Collection<? extends String> c)
           
 void clear()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection<?> c)
           
 boolean isEmpty()
           
 Iterator<String> iterator()
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 boolean retainAll(Collection<?> c)
           
 int size()
           
 Object[] toArray()
           
<T> T[]
toArray(T[] a)
           
 
从类 com.hankcs.hanlp.collection.MDAG.MDAG 继承的方法
_getEquivalenceClassMDAGNodeHashMap, addString, addStrings, contains, getAllStrings, getSimpleMDAGArray, getStringsEndingWith, getStringsStartingWith, getStringsWithSubstring, load, removeString, save, simplify, unSimplify
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 java.util.Set 继承的方法
equals, hashCode
 

构造方法详细信息

MDAGSet

public MDAGSet(File dataFile)
        throws IOException
抛出:
IOException

MDAGSet

public MDAGSet(Collection<String> strCollection)

MDAGSet

public MDAGSet()
方法详细信息

size

public int size()
指定者:
接口 Collection<String> 中的 size
指定者:
接口 Set<String> 中的 size

isEmpty

public boolean isEmpty()
指定者:
接口 Collection<String> 中的 isEmpty
指定者:
接口 Set<String> 中的 isEmpty

contains

public boolean contains(Object o)
指定者:
接口 Collection<String> 中的 contains
指定者:
接口 Set<String> 中的 contains

iterator

public Iterator<String> iterator()
指定者:
接口 Iterable<String> 中的 iterator
指定者:
接口 Collection<String> 中的 iterator
指定者:
接口 Set<String> 中的 iterator

toArray

public Object[] toArray()
指定者:
接口 Collection<String> 中的 toArray
指定者:
接口 Set<String> 中的 toArray

toArray

public <T> T[] toArray(T[] a)
指定者:
接口 Collection<String> 中的 toArray
指定者:
接口 Set<String> 中的 toArray

add

public boolean add(String s)
指定者:
接口 Collection<String> 中的 add
指定者:
接口 Set<String> 中的 add

remove

public boolean remove(Object o)
指定者:
接口 Collection<String> 中的 remove
指定者:
接口 Set<String> 中的 remove

containsAll

public boolean containsAll(Collection<?> c)
指定者:
接口 Collection<String> 中的 containsAll
指定者:
接口 Set<String> 中的 containsAll

addAll

public boolean addAll(Collection<? extends String> c)
指定者:
接口 Collection<String> 中的 addAll
指定者:
接口 Set<String> 中的 addAll

retainAll

public boolean retainAll(Collection<?> c)
指定者:
接口 Collection<String> 中的 retainAll
指定者:
接口 Set<String> 中的 retainAll

removeAll

public boolean removeAll(Collection<?> c)
指定者:
接口 Collection<String> 中的 removeAll
指定者:
接口 Set<String> 中的 removeAll

clear

public void clear()
指定者:
接口 Collection<String> 中的 clear
指定者:
接口 Set<String> 中的 clear


Copyright © 2014–2015 码农场. All rights reserved.