public final class ServiceAccountPair
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
account
The account.
|
java.lang.String |
service
The service.
|
| Constructor and Description |
|---|
ServiceAccountPair(java.lang.String service,
java.lang.String account)
Creates a pair.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
static ServiceAccountPair |
read(java.io.DataInputStream in)
Reads a pair as two UTF-8 strings.
|
static void |
validate(java.lang.String service,
java.lang.String account)
Validates the service and the account.
|
void |
write(java.io.DataOutputStream out)
Writes the pair as two UTF-8 strings.
|
public final java.lang.String service
public final java.lang.String account
public ServiceAccountPair(java.lang.String service,
java.lang.String account)
service - The service.account - The account.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void write(java.io.DataOutputStream out)
throws java.io.IOException
out - The output stream.java.io.IOException - if an I/O error occurs.public static ServiceAccountPair read(java.io.DataInputStream in) throws java.io.IOException
in - The input stream.java.io.IOException - if an I/O error occurs.public static void validate(java.lang.String service,
java.lang.String account)
service - The service.account - The account.