Code example for TreeSet

Methods: iterator

0
		 
		/** 
		 * Default Constructor 
		 */ 
		protected MapRecordIterator() { 
			this.keyIter = new TreeSet<String>(MapRecordHandler.this.map.keySet()).iterator();
		} 
		 
		@Override 
		public boolean hasNext() { 
			return this.keyIter.hasNext();
		} 
		 
		@Override 
		public Record next() { 
			String key = this.keyIter.next();
			String data = MapRecordHandler.this.map.get(key);
			return new Record(key, data, MapRecordHandler.this);
		} 
		 
		@Override