public class MyRect extends AbstractShape implements Shape, Rectangle
| Constructor and Description |
|---|
MyRect(int x,
int y,
java.util.Optional<java.lang.String> notes,
int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
getHeight() |
java.util.Optional<java.lang.String> |
getNotes() |
int |
getWidth() |
int |
hashCode() |
static MyRectBuilder |
newMyRectBuilder() |
static MyRectBuilder |
newMyRectBuilderFromDefaults() |
getCount, getX, getY, setCount, setNotespublic MyRect(int x,
int y,
java.util.Optional<java.lang.String> notes,
int width,
int height)
public java.util.Optional<java.lang.String> getNotes()
getNotes in interface ShapegetNotes in class AbstractShapepublic static MyRectBuilder newMyRectBuilder()
public static MyRectBuilder newMyRectBuilderFromDefaults()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2022. All Rights Reserved.