< prev index next >

jdk/src/jdk.jline/share/classes/jdk/internal/jline/console/history/History.java

Print this page


   1 /*
   2  * Copyright (c) 2002-2012, the original author or authors.
   3  *
   4  * This software is distributable under the BSD license. See the terms of the
   5  * BSD license in the documentation provided with this software.
   6  *
   7  * http://www.opensource.org/licenses/bsd-license.php
   8  */
   9 package jline.console.history;
  10 
  11 import java.util.Iterator;
  12 import java.util.ListIterator;
  13 
  14 /**
  15  * Console history.
  16  *
  17  * @author <a href="mailto:mwp1@cornell.edu">Marc Prud'hommeaux</a>
  18  * @author <a href="mailto:jason@planet57.com">Jason Dillon</a>
  19  * @since 2.3
  20  */
  21 public interface History
  22     extends Iterable<History.Entry>
  23 {
  24     int size();
  25 
  26     boolean isEmpty();
  27 
  28     int index();
  29 


   1 /*
   2  * Copyright (c) 2002-2012, the original author or authors.
   3  *
   4  * This software is distributable under the BSD license. See the terms of the
   5  * BSD license in the documentation provided with this software.
   6  *
   7  * http://www.opensource.org/licenses/bsd-license.php
   8  */
   9 package jdk.internal.jline.console.history;
  10 
  11 import java.util.Iterator;
  12 import java.util.ListIterator;
  13 
  14 /**
  15  * Console history.
  16  *
  17  * @author <a href="mailto:mwp1@cornell.edu">Marc Prud'hommeaux</a>
  18  * @author <a href="mailto:jason@planet57.com">Jason Dillon</a>
  19  * @since 2.3
  20  */
  21 public interface History
  22     extends Iterable<History.Entry>
  23 {
  24     int size();
  25 
  26     boolean isEmpty();
  27 
  28     int index();
  29 


< prev index next >