net.named_data.jndn
public class Exclude extends Object implements ChangeCountable
Modifier and Type | Class and Description |
---|---|
static class |
Exclude.Entry
An Exclude.Entry holds an Exclude.Type, and if it is a COMPONENT, it holds
the component value.
|
static class |
Exclude.Type |
Constructor and Description |
---|
Exclude()
Create a new Exclude with no entries.
|
Exclude(Exclude exclude)
Create a new Exclude as a copy of the given exclude.
|
Modifier and Type | Method and Description |
---|---|
Exclude |
appendAny()
Append a new entry of type Exclude.Type.ANY.
|
Exclude |
appendComponent(Name.Component component)
Append a new entry of type Exclude.Type.COMPONENT, taking another pointer
to the Name.Component.
|
void |
clear()
Clear all the entries.
|
Exclude.Entry |
get(int i)
Get the entry at the given index.
|
long |
getChangeCount()
Get the change count, which is incremented each time this object is
changed.
|
boolean |
matches(Name.Component component)
Check if the component matches any of the exclude criteria.
|
int |
size()
Get the number of entries.
|
String |
toUri()
Encode this Exclude with elements separated by "," and Exclude.Type.ANY
shown as "*".
|
public Exclude()
public Exclude(Exclude exclude)
exclude
- The Exclude to copy.public final int size()
public final Exclude.Entry get(int i)
i
- The index of the entry, starting from 0.public final Exclude appendAny()
public final Exclude appendComponent(Name.Component component)
component
- The component value for the entry.public final void clear()
public boolean matches(Name.Component component)
component
- The name component to check.public final String toUri()
public final long getChangeCount()
getChangeCount
in interface ChangeCountable
Copyright © 2016. All rights reserved.