net.named_data.jndn
public class MetaInfo extends Object implements ChangeCountable
Constructor and Description |
---|
MetaInfo()
Create a new MetaInfo with default values.
|
MetaInfo(MetaInfo metaInfo)
Create a new MetaInfo with a copy of the fields in the given metaInfo.
|
Modifier and Type | Method and Description |
---|---|
long |
getChangeCount()
Get the change count, which is incremented each time this object is changed.
|
Name.Component |
getFinalBlockId() |
Name.Component |
getFinalBlockID()
Deprecated.
Use getFinalBlockId.
|
double |
getFreshnessPeriod() |
int |
getFreshnessSeconds()
Deprecated.
Use getFreshnessPeriod.
|
ContentType |
getType() |
void |
setFinalBlockId(Name.Component finalBlockId) |
void |
setFinalBlockID(Name.Component finalBlockId)
Deprecated.
Use setFinalBlockId.
|
void |
setFreshnessPeriod(double freshnessPeriod) |
void |
setFreshnessSeconds(int freshnessSeconds)
Deprecated.
Use setFreshnessPeriod.
|
void |
setType(ContentType type) |
public MetaInfo()
public MetaInfo(MetaInfo metaInfo)
metaInfo
- The MetaInfo to copy.public final ContentType getType()
public final double getFreshnessPeriod()
public final int getFreshnessSeconds()
public final Name.Component getFinalBlockId()
public final Name.Component getFinalBlockID()
public final void setType(ContentType type)
public final void setFreshnessPeriod(double freshnessPeriod)
public final void setFreshnessSeconds(int freshnessSeconds)
public final void setFinalBlockId(Name.Component finalBlockId)
public final void setFinalBlockID(Name.Component finalBlockId)
public final long getChangeCount()
getChangeCount
in interface ChangeCountable
Copyright © 2016. All rights reserved.