Java中哪些类实现了Iterator接口??
6个回答
展开全部
是java.lang的接口 Iterable吧
所有已知子接口:
BeanContext, BeanContextServices, BlockingDeque<E>, BlockingQueue<E>, Collection<E>, Deque<E>, List<E>, NavigableSet<E>, Queue<E>, Set<E>, SortedSet<E>
所有已知实现类:
AbstractCollection, AbstractList, AbstractQueue, AbstractSequentialList, AbstractSet, ArrayBlockingQueue, ArrayDeque, ArrayList, AttributeList, BatchUpdateException, BeanContextServicesSupport, BeanContextSupport, ConcurrentLinkedQueue, ConcurrentSkipListSet, CopyOnWriteArrayList, CopyOnWriteArraySet, DataTruncation, DelayQueue, EnumSet, HashSet, JobStateReasons, LinkedBlockingDeque, LinkedBlockingQueue, LinkedHashSet, LinkedList, PriorityBlockingQueue, PriorityQueue, RoleList, RoleUnresolvedList, RowSetWarning, SerialException, ServiceLoader, SQLClientInfoException, SQLDataException, SQLException, SQLFeatureNotSupportedException, SQLIntegrityConstraintViolationException, SQLInvalidAuthorizationSpecException, SQLNonTransientConnectionException, SQLNonTransientException, SQLRecoverableException, SQLSyntaxErrorException, SQLTimeoutException, SQLTransactionRollbackException, SQLTransientConnectionException, SQLTransientException, SQLWarning, Stack, SyncFactoryException, SynchronousQueue, SyncProviderException, TreeSet, Vector
所有已知子接口:
BeanContext, BeanContextServices, BlockingDeque<E>, BlockingQueue<E>, Collection<E>, Deque<E>, List<E>, NavigableSet<E>, Queue<E>, Set<E>, SortedSet<E>
所有已知实现类:
AbstractCollection, AbstractList, AbstractQueue, AbstractSequentialList, AbstractSet, ArrayBlockingQueue, ArrayDeque, ArrayList, AttributeList, BatchUpdateException, BeanContextServicesSupport, BeanContextSupport, ConcurrentLinkedQueue, ConcurrentSkipListSet, CopyOnWriteArrayList, CopyOnWriteArraySet, DataTruncation, DelayQueue, EnumSet, HashSet, JobStateReasons, LinkedBlockingDeque, LinkedBlockingQueue, LinkedHashSet, LinkedList, PriorityBlockingQueue, PriorityQueue, RoleList, RoleUnresolvedList, RowSetWarning, SerialException, ServiceLoader, SQLClientInfoException, SQLDataException, SQLException, SQLFeatureNotSupportedException, SQLIntegrityConstraintViolationException, SQLInvalidAuthorizationSpecException, SQLNonTransientConnectionException, SQLNonTransientException, SQLRecoverableException, SQLSyntaxErrorException, SQLTimeoutException, SQLTransactionRollbackException, SQLTransientConnectionException, SQLTransientException, SQLWarning, Stack, SyncFactoryException, SynchronousQueue, SyncProviderException, TreeSet, Vector
展开全部
查api啊
java.util
接口 Collection<E>
所有超级接口:
Iterable<E>
所有已知子接口:
BeanContext, BeanContextServices,
BlockingDeque<E>,
BlockingQueue<E>,
Deque<E>,
List<E>, NavigableSet<E>, Queue<E>, Set<E>, SortedSet<E>
所有已知实现类:
AbstractCollection, AbstractList,
AbstractQueue, AbstractSequentialList,
AbstractSet, ArrayBlockingQueue,
ArrayDeque,
ArrayList, AttributeList, BeanContextServicesSupport,
BeanContextSupport,
ConcurrentLinkedQueue,
ConcurrentSkipListSet,
CopyOnWriteArrayList,
CopyOnWriteArraySet,
DelayQueue, EnumSet, HashSet, JobStateReasons,
LinkedBlockingDeque,
LinkedBlockingQueue,
LinkedHashSet, LinkedList, PriorityBlockingQueue,
PriorityQueue, RoleList, RoleUnresolvedList,
Stack, SynchronousQueue, TreeSet, Vector
这些都实现了
java.util
接口 Collection<E>
所有超级接口:
Iterable<E>
所有已知子接口:
BeanContext, BeanContextServices,
BlockingDeque<E>,
BlockingQueue<E>,
Deque<E>,
List<E>, NavigableSet<E>, Queue<E>, Set<E>, SortedSet<E>
所有已知实现类:
AbstractCollection, AbstractList,
AbstractQueue, AbstractSequentialList,
AbstractSet, ArrayBlockingQueue,
ArrayDeque,
ArrayList, AttributeList, BeanContextServicesSupport,
BeanContextSupport,
ConcurrentLinkedQueue,
ConcurrentSkipListSet,
CopyOnWriteArrayList,
CopyOnWriteArraySet,
DelayQueue, EnumSet, HashSet, JobStateReasons,
LinkedBlockingDeque,
LinkedBlockingQueue,
LinkedHashSet, LinkedList, PriorityBlockingQueue,
PriorityQueue, RoleList, RoleUnresolvedList,
Stack, SynchronousQueue, TreeSet, Vector
这些都实现了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
一般都是集合实现了Iterator,因为这个借口是用来迭代的嘛~
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
文档里边就有:BeanContextSupport.BCSIterator, EventReaderDelegate, Scanner
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
在eclipse/myeclipse中对着Iterator按Ctrl+T就能看到实现的类了
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询