Top Fields Constructors Methods
org.eclipse.jgit.fnmatch

pack-priv abstract Class AbstractHead

extends Object
implements Head
Class Inheritance
All Implemented Interfaces
org.eclipse.jgit.fnmatch.Head
Known Direct Subclasses
org.eclipse.jgit.fnmatch.CharacterHead, org.eclipse.jgit.fnmatch.GroupHead, org.eclipse.jgit.fnmatch.RestrictedWildCardHead, org.eclipse.jgit.fnmatch.WildCardHead
Imports
java.util.List, org.eclipse.jgit.internal.JGitText

Field Summary

Modifier and TypeField and Description
private List<Head>
private final boolean

Constructor Summary

AccessConstructor and Description
pack-priv
AbstractHead(boolean star)

Method Summary

Modifier and TypeMethod and Description
public List<Head>
getNextHeads(char
the character which decides which heads are returned.
c
)

Implements org.eclipse.jgit.fnmatch.Head.getNextHeads.

Get the character which decides which heads are returned

pack-priv boolean
protected abstract boolean

Returns:

whether the char matches
matches
(char
a char.
c
)

Whether the char matches

public final void
setNewHeads(List<Head>
a list of org.eclipse.jgit.fnmatch.Heads which will not be modified.
newHeads
)

Set org.eclipse.jgit.fnmatch.Heads which will not be modified.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

newHeadsback to summary
private List<Head> newHeads
starback to summary
private final boolean star

Constructor Detail

AbstractHeadback to summary
pack-priv AbstractHead(boolean star)

Method Detail

getNextHeadsback to summary
public List<Head> getNextHeads(char c)

Implements org.eclipse.jgit.fnmatch.Head.getNextHeads.

Doc from org.eclipse.jgit.fnmatch.Head.getNextHeads.

Get the character which decides which heads are returned

Parameters
c:char

the character which decides which heads are returned.

Returns:List<Head>

a list of heads based on the input.

Annotations
@Override
isStarback to summary
pack-priv boolean isStar()
matchesback to summary
protected abstract boolean matches(char c)

Whether the char matches

Parameters
c:char

a char.

Returns:boolean

whether the char matches

setNewHeadsback to summary
public final void setNewHeads(List<Head> newHeads)

Set org.eclipse.jgit.fnmatch.Heads which will not be modified.

Parameters
newHeads:List<Head>

a list of org.eclipse.jgit.fnmatch.Heads which will not be modified.