Package nl.vpro.domain
Class AbstractTextualObjectUpdate<T extends TypedText,D extends TypedText,TO extends AbstractTextualObjectUpdate<T,D,TO>>
- java.lang.Object
-
- nl.vpro.domain.AbstractTextualObjectUpdate<T,D,TO>
-
- All Implemented Interfaces:
TextualObjectUpdate<T,D,TO>
- Direct Known Subclasses:
AbstractTextualObject
,BasicTextualUpdate
public abstract class AbstractTextualObjectUpdate<T extends TypedText,D extends TypedText,TO extends AbstractTextualObjectUpdate<T,D,TO>> extends Object implements TextualObjectUpdate<T,D,TO>
- Since:
- 5.3
- Author:
- Michiel Meeuwissen
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractTextualObjectUpdate(BiFunction<String,TextualType,T> titleCreator, BiFunction<String,TextualType,D> descriptionCreator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BiFunction<String,TextualType,D>
getDescriptionCreator()
SortedSet<D>
getDescriptions()
BiFunction<String,TextualType,T>
getTitleCreator()
How to create an instance of a title.SortedSet<T>
getTitles()
void
setDescriptions(SortedSet<D> descriptions)
void
setTitles(SortedSet<T> titles)
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface nl.vpro.domain.TextualObjectUpdate
addDescription, addDescription, addTitle, addTitle, findDescription, findTitle, getAbbreviatedTitle, getLanguage, getLexicoTitle, getLongDescription, getMainDescription, getMainTitle, getOriginalTitle, getShortDescription, getShortTitle, getSubDescription, getSubTitle, getWorkTitle, hasDescriptions, hasTitles, removeDescription, removeDescription, removeTitle, self, setDescription, setDescription, setLongDescription, setMainDescription, setMainTitle, setTitle, setTitle
-
-
-
-
Constructor Detail
-
AbstractTextualObjectUpdate
protected AbstractTextualObjectUpdate(BiFunction<String,TextualType,T> titleCreator, BiFunction<String,TextualType,D> descriptionCreator)
-
-
Method Detail
-
getTitleCreator
public BiFunction<String,TextualType,T> getTitleCreator()
Description copied from interface:TextualObjectUpdate
How to create an instance of a title. This makes a lot of default methods possible.- Specified by:
getTitleCreator
in interfaceTextualObjectUpdate<T extends TypedText,D extends TypedText,TO extends AbstractTextualObjectUpdate<T,D,TO>>
-
getDescriptionCreator
public BiFunction<String,TextualType,D> getDescriptionCreator()
- Specified by:
getDescriptionCreator
in interfaceTextualObjectUpdate<T extends TypedText,D extends TypedText,TO extends AbstractTextualObjectUpdate<T,D,TO>>
-
getDescriptions
public SortedSet<D> getDescriptions()
- Specified by:
getDescriptions
in interfaceTextualObjectUpdate<T extends TypedText,D extends TypedText,TO extends AbstractTextualObjectUpdate<T,D,TO>>
-
setDescriptions
public void setDescriptions(SortedSet<D> descriptions)
- Specified by:
setDescriptions
in interfaceTextualObjectUpdate<T extends TypedText,D extends TypedText,TO extends AbstractTextualObjectUpdate<T,D,TO>>
-
-