Schnittstelle IOptionalHeaderHolder
- Alle bekannten Unterschnittstellen:
IChainedNode, IFluentMutableOptionalHeaderHolder<H>, IMutableNode<N>, IMutableOptionalHeaderHolder, INode<N>
- Alle bekannten Implementierungsklassen:
AbstractMutableNode, AbstractNode, ChainedNode, FileNode, MutableNode, Node
public interface IOptionalHeaderHolder
A
IOptionalHeaderHolder can have a header.- Autor:
- Silvan Wyss
-
Methodenübersicht
-
Methodendetails
-
getHeader
String getHeader()- Gibt zurück:
- the header of the current
IOptionalHeaderHolder. - Löst aus:
RuntimeException- if the currentIOptionalHeaderHolderdoes not have a header.
-
getHeaderOrEmptyString
- Gibt zurück:
- the header of the current
IOptionalHeaderHolderif it has a header, otherwise an emptyString.
-
getOptionalHeader
- Gibt zurück:
- a new
Optionalwith the header of the currentIOptionalHeaderHolderif it has a header, otherwise an emptyOptional.
-
hasHeader
boolean hasHeader()- Gibt zurück:
- true if the current
IOptionalHeaderHolderhas a header, false otherwise.
-
hasHeader
- Parameter:
header-- Gibt zurück:
- true if the current
IOptionalHeaderHolderhas the given header, false otherwise.
-