public final class LookupResult extends Object
| Constructor and Description |
|---|
LookupResult(List<Record> records,
List<Name> aliases)
Construct an instance with the provided records and, in the case of a CNAME or DNAME
indirection a List of aliases.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
List<Name> |
getAliases()
In the case of CNAME or DNAME indirection, this property contains the original name as well as
any intermediate redirect targets except the last one.
|
List<Record> |
getRecords()
An unmodifiable list of records that this instance wraps, may not be null but can be empty
|
int |
hashCode() |
String |
toString() |
public LookupResult(List<Record> records, List<Name> aliases)
records - a list of records to return.aliases - a list of aliases discovered during lookup, or null if there was no indirection.public List<Record> getRecords()
public List<Name> getAliases()
Copyright © 2021 dnsjava.org. All rights reserved.