Skip to content

Commit f3541eb

Browse files
committed
Rename class
1 parent 7151020 commit f3541eb

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/main/java/seedu/address/logic/commands/DeleteStudentCommand.java renamed to src/main/java/seedu/address/logic/commands/DelStudentCommand.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import seedu.address.model.group.GrpContainsKeywordPredicate;
1515
import seedu.address.model.group.Student;
1616

17-
public class DeleteStudentCommand extends Command {
17+
public class DelStudentCommand extends Command {
1818

1919
public static final String COMMAND_WORD = "delstudent";
2020
public static final String MESSAGE_USAGE = COMMAND_WORD
@@ -33,12 +33,12 @@ public class DeleteStudentCommand extends Command {
3333
private final GrpContainsKeywordPredicate predicate;
3434

3535
/**
36-
* Creates a DeleteStudentCommand to remove the specified {@code Student}
36+
* Creates a DelStudentCommand to remove the specified {@code Student}
3737
* @param studentName Name of Student
3838
* @param studentId Id of Student
3939
* @param predicate Group predicate
4040
*/
41-
public DeleteStudentCommand(String studentName, String studentId, GrpContainsKeywordPredicate predicate) {
41+
public DelStudentCommand(String studentName, String studentId, GrpContainsKeywordPredicate predicate) {
4242
requireAllNonNull(studentName, studentId, predicate);
4343
this.studentName = studentName;
4444
this.studentId = studentId;

src/main/java/seedu/address/logic/parser/DeleteStudentCommandParser.java renamed to src/main/java/seedu/address/logic/parser/DelStudentCommandParser.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77

88
import java.util.stream.Stream;
99

10-
import seedu.address.logic.commands.DeleteStudentCommand;
10+
import seedu.address.logic.commands.DelStudentCommand;
1111
import seedu.address.logic.parser.exceptions.ParseException;
1212
import seedu.address.model.group.GrpContainsKeywordPredicate;
1313

14-
public class DeleteStudentCommandParser implements Parser<DeleteStudentCommand> {
14+
public class DelStudentCommandParser implements Parser<DelStudentCommand> {
1515

1616
private final ParseException deleteStudentCommandParserException = new ParseException(
17-
String.format(MESSAGE_INVALID_COMMAND_FORMAT, DeleteStudentCommand.MESSAGE_USAGE));
17+
String.format(MESSAGE_INVALID_COMMAND_FORMAT, DelStudentCommand.MESSAGE_USAGE));
1818

1919
@Override
20-
public DeleteStudentCommand parse(String args) throws ParseException {
20+
public DelStudentCommand parse(String args) throws ParseException {
2121
ArgumentMultimap argMultimap = ArgumentTokenizer.tokenize(args, PREFIX_GRP, PREFIX_STUDENT, PREFIX_ID);
2222

2323
if (!arePrefixesPresent(argMultimap, PREFIX_GRP, PREFIX_STUDENT, PREFIX_ID) || !argMultimap.getPreamble()
@@ -41,7 +41,7 @@ public DeleteStudentCommand parse(String args) throws ParseException {
4141
String studentId = studentIdArray[0];
4242
String grpName = grpKeywordArray[0];
4343

44-
return new DeleteStudentCommand(studentName, studentId, new GrpContainsKeywordPredicate(grpName));
44+
return new DelStudentCommand(studentName, studentId, new GrpContainsKeywordPredicate(grpName));
4545
}
4646

4747
private static boolean arePrefixesPresent(ArgumentMultimap argumentMultimap, Prefix... prefixes) {

src/main/java/seedu/address/logic/parser/SerenityParser.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
import seedu.address.logic.commands.Command;
1717
import seedu.address.logic.commands.DelGrpCommand;
1818
import seedu.address.logic.commands.DelQnCommand;
19+
import seedu.address.logic.commands.DelStudentCommand;
1920
import seedu.address.logic.commands.DeleteCommand;
2021
import seedu.address.logic.commands.DeleteLsnCommand;
21-
import seedu.address.logic.commands.DeleteStudentCommand;
2222
import seedu.address.logic.commands.EditCommand;
2323
import seedu.address.logic.commands.ExitCommand;
2424
import seedu.address.logic.commands.FindCommand;
@@ -66,8 +66,8 @@ public Command parseCommand(String userInput) throws ParseException {
6666
case AddStudentCommand.COMMAND_WORD:
6767
return new AddStudentCommandParser().parse(arguments);
6868

69-
case DeleteStudentCommand.COMMAND_WORD:
70-
return new DeleteStudentCommandParser().parse(arguments);
69+
case DelStudentCommand.COMMAND_WORD:
70+
return new DelStudentCommandParser().parse(arguments);
7171

7272
case AddLsnCommand.COMMAND_WORD:
7373
return new AddLsnCommandParser().parse(arguments);

0 commit comments

Comments
 (0)