View Javadoc
1   package com.atlassian.activeobjects.internal;
2   
3   /**
4    * Represents a String's prefix
5    */
6   public interface Prefix {
7       /**
8        * Prepends that prefix to the given String
9        *
10       * @param string the String to prepend the prefix to.
11       * @return the new String with the prefix prepended
12       */
13      String prepend(String string);
14  
15      /**
16       * Tells whether the prefix is at the start of the given String
17       *
18       * @param string        checks whether {@code this} starts the String
19       * @param caseSensitive whether or not we're case sensitive
20       * @return {@code true} if the string starts with the given prefix.
21       */
22      boolean isStarting(String string, boolean caseSensitive);
23  }