-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change package name and fix javadoc comments
- Loading branch information
1 parent
308ae02
commit b639c1e
Showing
10 changed files
with
115 additions
and
54 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,52 @@ | ||
package dds.gr.aueb.dmst.crazydevelopers; | ||
package gr.aueb.dmst.dds.CrazyDevelopers; | ||
|
||
/** ArrayListLine class. | ||
* *that will be used as a whole different line in our database | ||
* | ||
* @author oneofthecraziest | ||
*/ | ||
|
||
public class ArrayListLine { | ||
protected String[] line; | ||
// theoretical columns of our data base | ||
protected String[] line; | ||
// theoretical columns of our data base | ||
|
||
/** | ||
* Constructor of our class. | ||
* | ||
*/ | ||
public ArrayListLine(String[] line) { | ||
this.line = line; | ||
} | ||
/** | ||
* Constructor of our class. | ||
* @param line String Array | ||
*/ | ||
public ArrayListLine(String[] line) { | ||
this.line = line; | ||
} | ||
|
||
/** | ||
* method that helps changing a specific column of our line. | ||
*/ | ||
public void changeColumn(int column, String x) { | ||
line[column] = x; | ||
} | ||
/** | ||
* @param column first int value | ||
* @param x second string value | ||
* method that helps changing a specific column of our line. | ||
*/ | ||
public void changeColumn(int column, String x) { | ||
line[column] = x; | ||
} | ||
|
||
/** | ||
* Method that prints specific Line, will be used in the class Functions. | ||
*/ | ||
public void printLine() { | ||
System.out.print("|"); | ||
for (int i = 0; i < line.length; i++) { | ||
System.out.printf("%15s %5s|",line[i],""); | ||
} | ||
System.out.println("\t"); | ||
} | ||
/** | ||
* Method that prints specific Line, will be used in the class Functions. | ||
*/ | ||
public void printLine() { | ||
System.out.print("|"); | ||
for (int i = 0; i < line.length; i++) { | ||
System.out.printf("%15s %5s|",line[i],""); | ||
} | ||
System.out.println("\t"); | ||
} | ||
|
||
/** | ||
* Method that returns specific Line in an array, will be used in the class. | ||
* Functions | ||
*/ | ||
public String[] getLine() { | ||
String[] x = new String[line.length]; | ||
for (int i = 0; i < line.length; i++) { | ||
x[i] = line[i]; | ||
} | ||
return x; | ||
} | ||
/** | ||
* Method that returns specific Line in an array, will be used in the class. | ||
* Functions | ||
* @return specific line x | ||
*/ | ||
public String[] getLine() { | ||
String[] x = new String[line.length]; | ||
for (int i = 0; i < line.length; i++) { | ||
x[i] = line[i]; | ||
} | ||
return x; | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters