Skip to content

Commit

Permalink
Arrange
Browse files Browse the repository at this point in the history
  • Loading branch information
Cary-Xx committed Oct 22, 2019
1 parent 3bf4b05 commit af33fdf
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package seedu.address.ui.autocomplete;
package seedu.address.logic.search;

import java.io.BufferedReader;
import java.io.InputStream;
Expand All @@ -8,6 +8,8 @@
import java.util.List;

import seedu.address.MainApp;
import seedu.address.model.autocomplete.AutoCompleteModel;
import seedu.address.model.autocomplete.Word;

/**
* Main controller class to execute the searching logic
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package seedu.address.ui.autocomplete;
package seedu.address.logic.search;

import java.util.Comparator;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package seedu.address.ui.autocomplete;
package seedu.address.model.autocomplete;

import java.util.Arrays;

import seedu.address.logic.search.BinarySearch;

/**
* Given the data and the query, this class is for searching for words in the data
* starting with the given query and returns the array in descending order w.r.t weight.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package seedu.address.ui.autocomplete;
package seedu.address.model.autocomplete;

import java.util.Comparator;

Expand Down Expand Up @@ -94,7 +94,7 @@ public String toString() {
}

/**
* Compares two words in lexicographic order by word.
* Compares two words in lexicographic order.
*
* @return -1 if this is (less than) that
* 0 if this (is the same as) that
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/seedu/address/ui/CommandBox.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
import seedu.address.logic.commands.CommandResult;
import seedu.address.logic.commands.exceptions.CommandException;
import seedu.address.logic.parser.exceptions.ParseException;
import seedu.address.ui.autocomplete.AutoComplete;
import seedu.address.ui.autocomplete.QueryCard;
import seedu.address.logic.search.AutoComplete;

/**
* The UI component that is responsible for receiving user command inputs.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package seedu.address.ui.autocomplete;
package seedu.address.ui;

import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Region;
import seedu.address.ui.UiPart;

/**
* An UI component that displays information of a {@code Query}.
Expand Down

0 comments on commit af33fdf

Please sign in to comment.