public abstract class AbstractManifestBuilder<T extends ManifestInfoBuilder<T>> extends Object implements ManifestInfo, ManifestInfoBuilder<T>
Abstract AbstractManifestBuilder class.
ManifestInfoBuilder.ManifestNamedEntry
Modifier and Type | Field and Description |
---|---|
protected boolean |
hooked |
protected Map<Attributes.Name,CharSequence> |
mainAttributes |
protected Map<String,Map<Attributes.Name,CharSequence>> |
namedEntries |
Constructor and Description |
---|
AbstractManifestBuilder() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
equals(AbstractManifestBuilder<?> that)
Implementers should use check own properties, invoke
instanceof and then delegate to
same(AbstractManifestBuilder) |
boolean |
equals(Object other) |
int |
hashCode() |
protected void |
hook()
hook.
|
Map<Attributes.Name,CharSequence> |
mainAttributes()
mainAttributes.
|
T |
manifestMain(Map.Entry<Attributes.Name,? extends CharSequence> attribute)
manifestMain.
|
T |
manifestNamed(ManifestInfoBuilder.ManifestNamedEntry entry)
manifestNamed.
|
T |
mergeFrom(Manifest manifest)
mergeFrom.
|
Map<String,Map<Attributes.Name,CharSequence>> |
namedEntries()
namedEntries.
|
protected abstract void |
preBuildHook()
preBuildHook.
|
protected boolean |
same(AbstractManifestBuilder<?> that)
same.
|
protected abstract T |
self()
self.
|
Manifest |
to(Manifest manifest)
to.
|
void |
to(OutputStream out)
to.
|
protected void |
unhook()
unhook.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
mainAttribute, mainAttribute, namedEntry
attribute, attribute, toManifest
protected final Map<Attributes.Name,CharSequence> mainAttributes
protected final Map<String,Map<Attributes.Name,CharSequence>> namedEntries
protected boolean hooked
protected abstract T self()
self.
public abstract boolean equals(AbstractManifestBuilder<?> that)
Implementers should use check own properties, invoke instanceof
and then delegate to
same(AbstractManifestBuilder)
that
- an AbstractManifestBuilder
instance.same(AbstractManifestBuilder)
protected final boolean same(AbstractManifestBuilder<?> that)
same.
that
- a AbstractManifestBuilder
object.public T manifestMain(Map.Entry<Attributes.Name,? extends CharSequence> attribute)
ManifestInfoBuilder
manifestMain.
manifestMain
in interface ManifestInfoBuilder<T extends ManifestInfoBuilder<T>>
attribute
- a Map.Entry
object.public T manifestNamed(ManifestInfoBuilder.ManifestNamedEntry entry)
ManifestInfoBuilder
manifestNamed.
manifestNamed
in interface ManifestInfoBuilder<T extends ManifestInfoBuilder<T>>
entry
- a ManifestInfoBuilder.ManifestNamedEntry
object.public T mergeFrom(Manifest manifest)
ManifestInfoBuilder
mergeFrom.
mergeFrom
in interface ManifestInfoBuilder<T extends ManifestInfoBuilder<T>>
manifest
- a Manifest
object.public Manifest to(Manifest manifest)
ManifestInfoBuilder
to.
to
in interface ManifestInfoBuilder<T extends ManifestInfoBuilder<T>>
manifest
- a Manifest
object.Manifest
object.protected final void hook()
hook.
protected abstract void preBuildHook()
preBuildHook.
protected final void unhook()
unhook.
public void to(@WillNotClose OutputStream out)
ManifestInfoBuilder
to.
to
in interface ManifestInfoBuilder<T extends ManifestInfoBuilder<T>>
out
- a OutputStream
object.public Map<Attributes.Name,CharSequence> mainAttributes()
mainAttributes.
mainAttributes
in interface ManifestInfo
Map
object.public Map<String,Map<Attributes.Name,CharSequence>> namedEntries()
namedEntries.
namedEntries
in interface ManifestInfo
Map
object.Copyright © 2018 earcam. All rights reserved.