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