net.named_data.jndn
public static class DelegationSet.Delegation extends Object
Constructor and Description |
---|
DelegationSet.Delegation(int preference,
Name name)
Create a new DelegationSet.Delegation with the given values.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(DelegationSet.Delegation other)
Compare this Delegation with other according to the ordering, based first
on the preference number, then on the delegation name.
|
Name |
getName()
Get the delegation name.
|
int |
getPreference()
Get the preference number.
|
public DelegationSet.Delegation(int preference, Name name)
preference
- The preference number.name
- The delegation name. This makes a copy of the name.public final int getPreference()
public final Name getName()
public final int compare(DelegationSet.Delegation other)
other
- The other Delegation to compare with.Copyright © 2016. All rights reserved.