-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConstants.java
41 lines (40 loc) · 2.55 KB
/
Constants.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
public class Constants {
public static final String FROM_CONSTRUCTOR = "MyStringBuilder(String)";
public static final String FROM_DEEPCOPY_CONSTRUCTOR =
"MyStringBuilder(MyStringBuilder)";
public static final String FROM_APPEND_STR = "append(String)";
public static final String FROM_INSERT_CHAR = "insert(char, int)";
public static final String FROM_INSERT_STR = "insert(String, int)";
public static final String FROM_FIND_INDEX = "findIndex(int)";
public static final String FROM_REMOVE = "remove(int)";
public static final String FROM_DELETE_STARTINDEX = "delete(int)";
public static final String FROM_DELETE_STARTINDEX_ENDINDEX =
"delete(int, int)";
public static final String FROM_SUBSTRING_STARTINDEX = "substring(int)";
public static final String FROM_SUBSTRING_STARTINDEX_ENDINDEX =
"substring(int, int)";
public static final String FROM_CONCAT = "concat(MyStringBuilder)";
public static final String MESSAGE_CONSTRUCTOR = "string passed in is null";
public static final String MESSAGE_DEEPCOPY_CONSTRUCTOR =
"object passed in is null";
public static final String MESSAGE_APPREND_STR = "string passed in is null";
public static final String MESSAGE_INSERT_CHAR = "index is out of bounds";
public static final String MESSAGE_INSERT_STR1 = "string passed in is null";
public static final String MESSAGE_INSERT_STR2 = "index is out of bounds";
public static final String MESSAGE_FIND_INDEX = "index is out of bounds";
public static final String MESSAGE_REMOVE = "index is out of bounds";
public static final String MESSAGE_DELETE_STARTINDEX =
"startIndex is out of bounds";
public static final String MESSAGE_DELETE_STARTINDEX_ENDINDEX1 =
"endIndex is smaller than startIndex";
public static final String MESSAGE_DELETE_STARTINDEX_ENDINDEX2 =
"startIndex/endIndex is out of bounds";
public static final String MESSAGE_SUBSTRING_STARTINDEX =
"startIndex is out of bounds";
public static final String MESSAGE_SUBSTRING_STARTINDEX_ENDINDEX1 =
"startIndex/endIndex is out of bounds";
public static final String MESSAGE_SUBSTRING_STARTINDEX_ENDINDEX2 =
"endIndex is smaller than startIndex";
public static final String MESSAGE_CONCAT =
"object passed in is not the correct type";
}