Fixed some javadoc issues and updated build version syntax
This commit is contained in:
parent
33fbe0fa30
commit
8ecac95593
14 changed files with 51 additions and 48 deletions
|
|
@ -11,13 +11,13 @@ moving things around.
|
|||
|
||||
## Documentation
|
||||
Unfortunately, there is no dedicated documentation available. The only documentation
|
||||
is the JavaDoc in the source code and see the JUnit test cases for usage examples.
|
||||
is the JavaDoc in the source code and the JUnit test cases as usage examples.
|
||||
|
||||
## Running the tests
|
||||
|
||||
Execute all JUnit test-cases by running:
|
||||
```
|
||||
ant test
|
||||
mvn verify
|
||||
```
|
||||
|
||||
## Authors
|
||||
|
|
|
|||
12
Zutil.iml
12
Zutil.iml
|
|
@ -35,19 +35,23 @@
|
|||
<jarDirectory url="file://$MODULE_DIR$/lib" recursive="false" type="SOURCES" />
|
||||
</library>
|
||||
</orderEntry>
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.openjfx:javafx-controls:linux:11" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.openjfx:javafx-graphics:linux:11" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.openjfx:javafx-base:linux:11" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.openjfx:javafx-fxml:linux:11" level="project" />
|
||||
<orderEntry type="library" name="Maven: commons-fileupload:commons-fileupload:1.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: commons-io:commons-io:2.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: dom4j:dom4j:1.6.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: xml-apis:xml-apis:1.0.b2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: javax.servlet:javax.servlet-api:3.1.0" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.openjfx:javafx-controls:11" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.openjfx:javafx-controls:linux:11" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.openjfx:javafx-controls:win:11" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.openjfx:javafx-graphics:11" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.openjfx:javafx-graphics:linux:11" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.openjfx:javafx-graphics:win:11" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.openjfx:javafx-base:11" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.openjfx:javafx-base:linux:11" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.openjfx:javafx-base:win:11" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.openjfx:javafx-fxml:11" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.openjfx:javafx-fxml:linux:11" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.openjfx:javafx-fxml:win:11" level="project" />
|
||||
<orderEntry type="library" name="Maven: mysql:mysql-connector-java:5.1.36" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.xerial:sqlite-jdbc:3.8.11.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.12" level="project" />
|
||||
|
|
|
|||
6
pom.xml
6
pom.xml
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
<groupId>se.koc</groupId>
|
||||
<artifactId>zutil</artifactId>
|
||||
<version>1.0.2-${build.number}</version>
|
||||
<version>1.0.${build.number}</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>Zutil</name>
|
||||
|
|
@ -144,9 +144,9 @@
|
|||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>2.9.1</version>
|
||||
<version>3.1.0</version>
|
||||
<configuration> <!-- TODO: Temporary until javadoc issues are solved -->
|
||||
<additionalparam>-Xdoclint:none</additionalparam>
|
||||
<doclint>none</doclint>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ public class ByteUtil {
|
|||
|
||||
/**
|
||||
* Creates a new byte array with reversed byte ordering
|
||||
* (LittleEndian -> BigEndian, BigEndian -> LittleEndian)
|
||||
* (LittleEndian -> BigEndian, BigEndian -> LittleEndian)
|
||||
*
|
||||
* @param data is the byte array that will be reversed.
|
||||
* @return a new byte array that will have the same data but in reverse byte order
|
||||
|
|
|
|||
|
|
@ -58,9 +58,9 @@ public interface SortableDataList<T>{
|
|||
|
||||
/**
|
||||
* Compares to indexes and returns:
|
||||
* <0 if a<b ,
|
||||
* >0 if a>b ,
|
||||
* =0 if a=b
|
||||
* <br><0 if a<b ,
|
||||
* <br>>0 if a>b ,
|
||||
* <br>=0 if a=b
|
||||
*
|
||||
* @param a is the first index to compare
|
||||
* @param b is the second index to compare
|
||||
|
|
@ -70,9 +70,9 @@ public interface SortableDataList<T>{
|
|||
|
||||
/**
|
||||
* Compares to indexes and returns:
|
||||
* <0 if a<b ,
|
||||
* >0 if a>b ,
|
||||
* =0 if a=b
|
||||
* <br><0 if a<b ,
|
||||
* <br>>0 if a>b ,
|
||||
* <br>=0 if a=b
|
||||
*
|
||||
* @param a is the first index to compare
|
||||
* @param b is the second Object to compare
|
||||
|
|
|
|||
|
|
@ -257,25 +257,25 @@ public class SQLQuery {
|
|||
return cond("!=", arg1, arg2);
|
||||
}
|
||||
/**
|
||||
* Less than (arg1 < arg2)
|
||||
* Less than (arg1 < arg2)
|
||||
*/
|
||||
public SQLWhere LT(String arg1, String arg2){
|
||||
return cond("<", arg1, arg2);
|
||||
}
|
||||
/**
|
||||
* Greater than (arg1 > arg2)
|
||||
* Greater than (arg1 > arg2)
|
||||
*/
|
||||
public SQLWhere GT(String arg1, String arg2){
|
||||
return cond(">", arg1, arg2);
|
||||
}
|
||||
/**
|
||||
* Less than or equal (arg1 <= arg2)
|
||||
* Less than or equal (arg1 <= arg2)
|
||||
*/
|
||||
public SQLWhere LE(String arg1, String arg2){
|
||||
return cond("<=", arg1, arg2);
|
||||
}
|
||||
/**
|
||||
* Greater than or equal (arg1 >= arg2)
|
||||
* Greater than or equal (arg1 >= arg2)
|
||||
*/
|
||||
public SQLWhere GE(String arg1, String arg2){
|
||||
return cond(">=", arg1, arg2);
|
||||
|
|
|
|||
|
|
@ -48,19 +48,20 @@ import java.util.logging.Logger;
|
|||
* DBBean will be replaced with the an id which corresponds to the field
|
||||
* of that object.
|
||||
*
|
||||
* <XMP>
|
||||
* <p>
|
||||
* Supported fields:
|
||||
* *Boolean
|
||||
* *Integer
|
||||
* *Short
|
||||
* *Float
|
||||
* *Double
|
||||
* *String
|
||||
* *Character
|
||||
* *java.sql.Timestamp
|
||||
* *DBBean (A Integer reference to another Bean in another table)
|
||||
* *List<DBBean> (A reference table is used to associate Beans into the list)
|
||||
* </XMP>
|
||||
* <ul>
|
||||
* <li>Boolean</li>
|
||||
* <li>Integer</li>
|
||||
* <li>Short</li>
|
||||
* <li>Float</li>
|
||||
* <li>Double</li>
|
||||
* <li>String</li>
|
||||
* <li>Character</li>
|
||||
* <li>java.sql.Timestamp</li>
|
||||
* <li>DBBean (A Integer reference to another Bean in another table)</li>
|
||||
* <li>List<DBBean> (A reference table is used to associate Beans into the list)</li>
|
||||
* </ul>
|
||||
* @author Ziver
|
||||
*/
|
||||
public abstract class DBBean {
|
||||
|
|
|
|||
|
|
@ -101,12 +101,12 @@ public abstract class ImageFilterProcessor {
|
|||
}
|
||||
|
||||
/**
|
||||
* Creates a Integer array with the pixel data of the image <XMP>
|
||||
* Creates a Integer array with the pixel data of the image <pre>
|
||||
* int[row][col][4]
|
||||
* 0 -> Alpha data
|
||||
* 0 -> Alpha data
|
||||
* Red data
|
||||
* Green data
|
||||
* 4 -> Blue data </XMP>
|
||||
* 4 -> Blue data </pre>
|
||||
*
|
||||
* @param img is the image to convert
|
||||
* @param cols is the columns of the image
|
||||
|
|
|
|||
|
|
@ -49,12 +49,12 @@ public class DitheringFilter extends ImageFilterProcessor{
|
|||
/**
|
||||
* Creates a Dithering Effect object
|
||||
* @param img The image to apply the effect on
|
||||
* @param palette The palette to use on the image
|
||||
* @param palette The palette to use on the image <pre>
|
||||
* int[colorCount][4]
|
||||
* 0 -> Alpha data
|
||||
* 0 -> Alpha data
|
||||
* Red data
|
||||
* Green data
|
||||
* 4 -> Blue data
|
||||
* 4 -> Blue data </pre>
|
||||
*/
|
||||
public DitheringFilter(BufferedImage img, int[][] palette){
|
||||
super(img);
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ public class LinearRegression {
|
|||
* Method for calculating a hypothesis value fr a specific input value x.
|
||||
* <br><br>
|
||||
* <i>
|
||||
* h(x) = theta0 * x0 + theta1 * x1 + ... + thetan * xn => transpose(theta) * x
|
||||
* h(x) = theta0 * x0 + theta1 * x1 + ... + thetan * xn => transpose(theta) * x
|
||||
* </i>
|
||||
*/
|
||||
protected static double[] calculateHypothesis(double[][] x, double[] theta){
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ public class HttpURL {
|
|||
* Generates the parameter string in a URL.
|
||||
*
|
||||
* e.g.
|
||||
* "key=value&key2=value&..."
|
||||
* "key=value&key2=value&..."
|
||||
*/
|
||||
public String getParameterString(){
|
||||
StringBuilder param = new StringBuilder();
|
||||
|
|
|
|||
|
|
@ -81,8 +81,8 @@ import java.util.logging.Logger;
|
|||
* Comment, will be ignored.</li>
|
||||
* </ul>
|
||||
*
|
||||
* TODO: {{> file}}: include file
|
||||
* TODO: {{=<% %>=}}: change delimiter
|
||||
* TODO: {{> file}}: include file
|
||||
* TODO: {{=<% %>=}}: change delimiter
|
||||
*
|
||||
* @author Ziver koc
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ import zutil.log.LogUtil;
|
|||
import zutil.parser.Base64Decoder;
|
||||
import zutil.parser.DataNode;
|
||||
|
||||
import javax.activation.UnsupportedDataTypeException;
|
||||
import java.io.*;
|
||||
import java.lang.reflect.Array;
|
||||
import java.lang.reflect.Field;
|
||||
|
|
@ -123,7 +122,7 @@ public class JSONObjectInputStream extends InputStream implements ObjectInput, C
|
|||
|
||||
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
protected Object readType(Class<?> type, Class<?>[] genType, String key, DataNode json) throws IllegalAccessException, ClassNotFoundException, InstantiationException, UnsupportedDataTypeException, NoSuchFieldException {
|
||||
protected Object readType(Class<?> type, Class<?>[] genType, String key, DataNode json) throws IllegalAccessException, ClassNotFoundException, InstantiationException, NoSuchFieldException {
|
||||
if(json == null || type == null)
|
||||
return null;
|
||||
// Field type is a primitive?
|
||||
|
|
@ -171,7 +170,7 @@ public class JSONObjectInputStream extends InputStream implements ObjectInput, C
|
|||
}
|
||||
|
||||
|
||||
protected Object readObject(Class<?> type, String key, DataNode json) throws IllegalAccessException, InstantiationException, ClassNotFoundException, IllegalArgumentException, UnsupportedDataTypeException, NoSuchFieldException {
|
||||
protected Object readObject(Class<?> type, String key, DataNode json) throws IllegalAccessException, InstantiationException, ClassNotFoundException, IllegalArgumentException, NoSuchFieldException {
|
||||
// Only parse if json is a map
|
||||
if(json == null || !json.isMap())
|
||||
return null;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@ import zutil.parser.Base64Encoder;
|
|||
import zutil.parser.DataNode;
|
||||
import zutil.parser.DataNode.DataType;
|
||||
|
||||
import javax.activation.UnsupportedDataTypeException;
|
||||
import java.io.*;
|
||||
import java.lang.reflect.Array;
|
||||
import java.lang.reflect.Field;
|
||||
|
|
@ -169,7 +168,7 @@ public class JSONObjectOutputStream extends OutputStream implements ObjectOutput
|
|||
return root;
|
||||
}
|
||||
|
||||
private DataNode getPrimitiveDataNode(Class<?> type, Object value) throws UnsupportedDataTypeException, IllegalArgumentException {
|
||||
private DataNode getPrimitiveDataNode(Class<?> type, Object value) throws IllegalArgumentException {
|
||||
DataNode node;
|
||||
if (type == int.class ||
|
||||
type == Integer.class ||
|
||||
|
|
@ -188,7 +187,7 @@ public class JSONObjectOutputStream extends OutputStream implements ObjectOutput
|
|||
type == Character.class)
|
||||
node = new DataNode(DataType.String);
|
||||
else
|
||||
throw new UnsupportedDataTypeException("Unsupported primitive data type: "+type.getName());
|
||||
throw new IllegalArgumentException("Unsupported primitive data type: "+type.getName());
|
||||
|
||||
if(value != null)
|
||||
node.set(value.toString());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue