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 继承的方法 |
_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 |
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 鐮佸啘鍦�/a>. All rights reserved.