@Immutable
public class XMLAttribute
extends Object
Instances of this class are immutable.
Constructor and Description |
---|
XMLAttribute(String name,
String value)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
String |
getName()
Gets the attribute's name.
|
String |
getValue()
Gets the attribute's value.
|
int |
hashCode() |
String |
toString() |
public XMLAttribute(@Nonnull String name, @Nonnull String value)
name
- The attribute's name.value
- The attribute's value.public boolean equals(Object other)
equals
in class Object
@Nonnull @CheckReturnValue public String getName()
@Nonnull @CheckReturnValue public String getValue()
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.