package li.cil.oc.api.fs; | |
/** | |
* Used by file system components to get and set the file system's label. | |
* | |
* @see li.cil.oc.api.FileSystem#asManagedEnvironment(FileSystem, Label) | |
*/ | |
public interface Label { | |
/** | |
* Get the current value of this label. | |
* <p/> | |
* May be <tt>null</tt> if no label is set. | |
* | |
* @return the current label. | |
*/ | |
String getLabel(); | |
/** | |
* Set the new value of this label. | |
* <p/> | |
* May be set to <tt>null</tt> to clear the label. | |
* | |
* @param value the new label. | |
*/ | |
void setLabel(String value); | |
} |