Skip to content

Commit 82266a8

Browse files
committed
Removed all public method modifiers in interfaces.
1 parent ba413ef commit 82266a8

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

aima-core/src/main/java/aima/core/robotics/datatypes/IMclRangeReading.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public interface IMclRangeReading<R extends IMclRangeReading<R,V>, V extends IMc
1717
* Returns the vector by which the robot was rotated for this range reading.
1818
* @return the vector by which the robot was rotated for this range reading.
1919
*/
20-
public V getAngle();
20+
V getAngle();
2121
/**
2222
* The range sensor noise model.
2323
* Calculates a weight between 0 and 1 that specifies how similar the given range readings is to this range reading.

aima-core/src/main/java/aima/core/robotics/impl/datatypes/IPose2D.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ public interface IPose2D<P extends IPose2D<P,M>,M extends IMclMove<M>> extends I
1818
/**
1919
* @return the X coordinate of the pose.
2020
*/
21-
public double getX();
21+
double getX();
2222
/**
2323
* @return the Y coordinate of the pose.
2424
*/
25-
public double getY();
25+
double getY();
2626
/**
2727
* @return the heading of the pose in radians.
2828
*/
29-
public double getHeading();
29+
double getHeading();
3030
}

aima-core/src/main/java/aima/core/robotics/impl/map/IPoseFactory.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public interface IPoseFactory<P extends IPose2D<P,M>,M extends IMclMove<M>> {
2020
* @param point the 2D coordinates of the new pose.
2121
* @return the new pose.
2222
*/
23-
public P getPose(Point2D point);
23+
P getPose(Point2D point);
2424

2525
/**
2626
* Creates a new instance of {@code <P>} for the given parameters.<br/>
@@ -29,12 +29,12 @@ public interface IPoseFactory<P extends IPose2D<P,M>,M extends IMclMove<M>> {
2929
* @param heading the heading of the pose. This heading may be invalid. Based on the given environment this can be corrected or ignored.
3030
* @return the new pose.
3131
*/
32-
public P getPose(Point2D point, double heading);
32+
P getPose(Point2D point, double heading);
3333

3434
/**
3535
* Checks whether the heading of a pose is valid.
3636
* @param pose the pose to be checked.
3737
* @return true if the heading is valid.
3838
*/
39-
public boolean isHeadingValid(P pose);
39+
boolean isHeadingValid(P pose);
4040
}

aima-core/src/main/java/aima/core/robotics/impl/map/IRangeReadingFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ public interface IRangeReadingFactory<R extends AbstractRangeReading> {
1717
* @param value the value of the new range reading.
1818
* @return the new range reading.
1919
*/
20-
public R getRangeReading(double value);
20+
R getRangeReading(double value);
2121
}

aima-core/src/main/java/aima/core/util/math/geom/IGroupParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ public interface IGroupParser {
2525
* @throws Exception if an error is found while parsing the input.
2626
* @return the constructed list of geometric shapes.
2727
*/
28-
public ArrayList<IGeometric2D> parse(InputStream input, String groupID) throws Exception;
28+
ArrayList<IGeometric2D> parse(InputStream input, String groupID) throws Exception;
2929
}

aima-core/src/main/java/aima/core/util/math/geom/shapes/IGeometric2D.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,34 +16,34 @@ public interface IGeometric2D {
1616
* Generates a random point that is on this geometric shape. {@code isInsideBorder()} has to return {@code true} for that point.
1717
* @return a new random point inside the shape.
1818
*/
19-
public Point2D randomPoint();
19+
Point2D randomPoint();
2020
/**
2121
* Tests whether the point is inside this geometric shape excluding its border.
2222
* @param point the point to be tested.
2323
* @return true if the point is inside the shape.
2424
*/
25-
public boolean isInside(Point2D point);
25+
boolean isInside(Point2D point);
2626
/**
2727
* Tests whether the point is inside this geometric shape including its border.
2828
* @param point the point to be tested.
2929
* @return true if the point is inside the shape or on its border.
3030
*/
31-
public boolean isInsideBorder(Point2D point);
31+
boolean isInsideBorder(Point2D point);
3232
/**
3333
* Intersects this geometric shape with a ray.
3434
* @param ray the ray to intersect.
3535
* @return the length of the ray until it intersects with this shape. {@code Double.POSITIVE_INFINITY} if it does not intersect this shape.
3636
*/
37-
public double rayCast(Ray2D ray);
37+
double rayCast(Ray2D ray);
3838
/**
3939
* Gets the boundaries of this geometric shape as a {@link Rect2D}.
4040
* @return the boundaries of this shape.
4141
*/
42-
public Rect2D getBounds();
42+
Rect2D getBounds();
4343
/**
4444
* Calculates a {@link TransformMatrix2D} onto this geometric shape.
4545
* @param matrix the transformation matrix that gets calculated into this shape.
4646
* @return the transformed shape.
4747
*/
48-
public IGeometric2D transform(TransformMatrix2D matrix);
48+
IGeometric2D transform(TransformMatrix2D matrix);
4949
}

aima-gui/src/main/java/aima/gui/swing/demo/robotics/components/IRobotGui.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public interface IRobotGui {
1414
/**
1515
* The string that is shown in the connect button by default.
1616
*/
17-
public String DEFAULT_BUTTON_STRING = "Initialize Robot";
17+
String DEFAULT_BUTTON_STRING = "Initialize Robot";
1818
/**
1919
* Lets the robot class connect with or initialize/reset the actual robot.
2020
* @return true if the robot is ready for use.

0 commit comments

Comments
 (0)