public static class Location.Builder
extends java.lang.Object
Constructor and Description |
---|
Location.Builder()
Instantiates a new builder.
|
Location.Builder(java.lang.Long top,
java.lang.Long left,
java.lang.Long width,
java.lang.Long height)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
Location |
build()
Builds a Location.
|
Location.Builder |
height(long height)
Set the height.
|
Location.Builder |
left(long left)
Set the left.
|
Location.Builder |
top(long top)
Set the top.
|
Location.Builder |
width(long width)
Set the width.
|
public Location.Builder()
public Location.Builder(java.lang.Long top, java.lang.Long left, java.lang.Long width, java.lang.Long height)
top
- the topleft
- the leftwidth
- the widthheight
- the heightpublic Location build()
public Location.Builder top(long top)
top
- the toppublic Location.Builder left(long left)
left
- the leftpublic Location.Builder width(long width)
width
- the widthpublic Location.Builder height(long height)
height
- the height