Constructor and Description |
---|
Layout(String name,
float width,
float height)
Initializes new instance of
Layout class. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Layout other)
|
boolean |
equals(Object obj)
Determines whether the current
Layout is the same as specified object. |
float |
getHeight() |
String |
getName() |
float |
getWidth() |
int |
hashCode()
Returns the hash code for the current
Layout object. |
static boolean |
isEqualTo(Layout left,
Layout right)
Determines whether two
Layout objects are the same. |
static boolean |
isNotEqualTo(Layout left,
Layout right)
Determines whether two
Layout objects are not the same. |
String |
toString()
Returns a string that represents the current object.
|
public Layout(String name, float width, float height)
Initializes new instance of Layout
class.
name
- The name of the layout.width
- The width of the layout in pixels.height
- The height of the layout in pixels.IllegalArgumentException
- Thrown when name
is null or empty.public final boolean equals(Layout other)
public boolean equals(Object obj)
Determines whether the current Layout
is the same as specified object.
public final float getHeight()
public final String getName()
public final float getWidth()
public int hashCode()
Returns the hash code for the current Layout
object.
public static boolean isEqualTo(Layout left, Layout right)
Determines whether two Layout
objects are the same.
public static boolean isNotEqualTo(Layout left, Layout right)
Determines whether two Layout
objects are not the same.
Copyright © 2020. All rights reserved.