Interface IOptionalHeaderHolder
- All Known Subinterfaces:
IChainedNode, IFluentMutableOptionalHeaderHolder<H>, IMutableNode<N>, IMutableOptionalHeaderHolder, INode<N>
- All Known Implementing Classes:
AbstractMutableNode, AbstractNode, ChainedNode, FileNode, MutableNode, Node
public interface IOptionalHeaderHolder
A
IOptionalHeaderHolder can have a header.- Author:
- Silvan Wyss
-
Method Summary
-
Method Details
-
getHeader
String getHeader()- Returns:
- the header of the current
IOptionalHeaderHolder. - Throws:
RuntimeException- if the currentIOptionalHeaderHolderdoes not have a header.
-
getHeaderOrEmptyString
- Returns:
- the header of the current
IOptionalHeaderHolderif it has a header, otherwise an emptyString.
-
getOptionalHeader
- Returns:
- a new
Optionalwith the header of the currentIOptionalHeaderHolderif it has a header, otherwise an emptyOptional.
-
hasHeader
boolean hasHeader()- Returns:
- true if the current
IOptionalHeaderHolderhas a header, false otherwise.
-
hasHeader
- Parameters:
header-- Returns:
- true if the current
IOptionalHeaderHolderhas the given header, false otherwise.
-