Skip navigation links
A B C E G H I N R S T U W 

A

a - Variable in class eecs2030.lab3.Triangle
The shortest side of the triangle

B

b - Variable in class eecs2030.lab3.Triangle
The side of medium length of the triangle

C

c - Variable in class eecs2030.lab3.Triangle
The longest side of the triangle
Circle - Class in eecs2030.lab3
The Circle class is immutable class that contains one variable to store the radius of the circle, and methods to get its area and circumference.
Circle(double) - Constructor for class eecs2030.lab3.Circle
Initializes the Circle object using the provided radius argument.
circle(double) - Static method in class eecs2030.lab3.ShapeUtil
Static method that returns a new circle object
compare(Object, Object) - Static method in class eecs2030.lab3.ShapeUtil
This static method compares two shapes by their area for sorting.
compareTo(Circle) - Method in class eecs2030.lab3.Circle
Compares area of this circle object and the other circle c.
compareTo(Rectangle) - Method in class eecs2030.lab3.Rectangle
Compares area of this rectangle object and the other rectangle r.
compareTo(Triangle) - Method in class eecs2030.lab3.Triangle
Compares area of this triangle object and the other triangle t.

E

eecs2030.lab3 - package eecs2030.lab3
 
equals(Object) - Method in class eecs2030.lab3.Circle
Compares this circle with the argument obj of Object type.
equals(Object) - Method in class eecs2030.lab3.Rectangle
Compares this rectangle with the argument obj of Object type.
equals(Object) - Method in class eecs2030.lab3.Triangle
Compares this triangle with the argument obj of Object type.
equilateralTri(double) - Static method in class eecs2030.lab3.ShapeUtil
Static method to create an equilateral triangle with sides length = side

G

getA() - Method in class eecs2030.lab3.Triangle
Accessor method that returns the smallest side of this triangle.
getArea() - Method in class eecs2030.lab3.Circle
This method returns the area of the circle.
getArea() - Method in class eecs2030.lab3.Rectangle
Returns the area of the rectangle which is equal to the width multiplied by the height.
getArea(Object) - Static method in class eecs2030.lab3.ShapeUtil
This static method returns the area of the argument shape.
getArea() - Method in class eecs2030.lab3.Triangle
This method returns the area of the triangle.
getB() - Method in class eecs2030.lab3.Triangle
Accessor method that returns the medium side of this triangle.
getC() - Method in class eecs2030.lab3.Triangle
Accessor method that returns the longest side of this triangle.
getCircumference() - Method in class eecs2030.lab3.Circle
This method returns the circumference of the circle.
getHeight() - Method in class eecs2030.lab3.Rectangle
Accessor method that returns the height of this rectangle
getNumCircles() - Static method in class eecs2030.lab3.Circle
This static method returns the number of objects instantiated from the Circle class.
getNumRectangles() - Static method in class eecs2030.lab3.Rectangle
This method returns the number of objects instantiated from the Rectangle class.
getNumTriangles() - Static method in class eecs2030.lab3.Triangle
This method returns the number of objects instantiated from the Triangle class.
getPerimeter() - Method in class eecs2030.lab3.Rectangle
Returns the perimeter of the rectangle which is equal to the sum of its four sides.
getPerimeter() - Method in class eecs2030.lab3.Triangle
This method returns the perimeter of the triangle.
getRadius() - Method in class eecs2030.lab3.Circle
Accessor method that returns the radius of the circle
getWidth() - Method in class eecs2030.lab3.Rectangle
Accessor method that returns the width of this rectangle

H

hashCode() - Method in class eecs2030.lab3.Circle
Generates a hashCode of this circle using its radius.
hashCode() - Method in class eecs2030.lab3.Rectangle
Generates a hashCode of this rectangle using its width and height.
hashCode() - Method in class eecs2030.lab3.Triangle
Generates a hashCode of this triangle using its sides length.
height - Variable in class eecs2030.lab3.Rectangle
The height of the rectangle

I

incircle(Triangle) - Static method in class eecs2030.lab3.ShapeUtil
A static method that returns the circle inscribed inside a triangle.
incircle(Rectangle) - Static method in class eecs2030.lab3.ShapeUtil
An overloaded static method that returns the circle inscribed inside a square.
isEquilateral() - Method in class eecs2030.lab3.Triangle
Method to check if a triangle is equilateral triangle by having equal length sides.
isSquare() - Method in class eecs2030.lab3.Rectangle
Method to check if a rectangle is square by having equal width and height.
isValid(double, double, double) - Static method in class eecs2030.lab3.Triangle
A Triangle is considered valid if and only if the sum of two sides be greater than the third side.

N

numCircles - Static variable in class eecs2030.lab3.Circle
Stores the number of objects instantiated from the Circle class
numRectangles - Static variable in class eecs2030.lab3.Rectangle
Stores the number of objects instantiated from the Rectangle class
numTriangles - Static variable in class eecs2030.lab3.Triangle
Stores the number of objects instantiated from the Triangle class

R

radius - Variable in class eecs2030.lab3.Circle
The radius of the circle
Rectangle - Class in eecs2030.lab3
The Rectangle class is immutable class that contains two variables to store the width and heights of the rectangle, and methods to get its area and perimeter.
Rectangle(double, double) - Constructor for class eecs2030.lab3.Rectangle
Initializes the Rectangle object using the provided width and height arguments.
rectangle(double, double) - Static method in class eecs2030.lab3.ShapeUtil
Static method that returns a new rectangle object

S

ShapeUtil - Class in eecs2030.lab3
The utility class ShapeUtil provides helper methods to instantiate objects of basic shapes and compare them by area.
ShapeUtil() - Constructor for class eecs2030.lab3.ShapeUtil
The no-args constructor is private so a client cannot instantiate an object from this utility class.
square(double) - Static method in class eecs2030.lab3.ShapeUtil
Static method to create a square that has side length = side

T

TOL - Static variable in class eecs2030.lab3.ShapeUtil
A tolerance value below which two objects are considered equal.
toString() - Method in class eecs2030.lab3.Circle
 
toString() - Method in class eecs2030.lab3.Rectangle
 
toString() - Method in class eecs2030.lab3.Triangle
 
triangle(double, double, double) - Static method in class eecs2030.lab3.ShapeUtil
Static method that returns a new triangle object
Triangle - Class in eecs2030.lab3
The Triangle class is immutable class that contains three variables to store the length of each side of the triangle, and methods to get its area and perimeter.
Triangle(double, double, double) - Constructor for class eecs2030.lab3.Triangle
Initializes the new Triangle object using the provided sides in the arguments.

U

unitCircle() - Static method in class eecs2030.lab3.ShapeUtil
Static method to create the unit circle that has the radius = 1.0

W

width - Variable in class eecs2030.lab3.Rectangle
The width of the rectangle
A B C E G H I N R S T U W 
Skip navigation links