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.completer;
  10 
  11 import java.util.List;
  12 
  13 /**
  14  * Null completer.
  15  *
  16  * @author <a href="mailto:mwp1@cornell.edu">Marc Prud'hommeaux</a>
  17  * @author <a href="mailto:jason@planet57.com">Jason Dillon</a>
  18  * @since 2.3
  19  */
  20 public final class NullCompleter
  21     implements Completer
  22 {
  23     public static final NullCompleter INSTANCE = new NullCompleter();
  24 
  25     public int complete(final String buffer, final int cursor, final List<CharSequence> candidates) {
  26         return -1;
  27     }
  28 }