Top Inners Fields Constructors Methods
org.eclipse.jgit.lib

pack-priv Class ConfigSnapshot

extends Object
Class Inheritance
Static Imports
org.eclipse.jgit.util.StringUtils.compareIgnoreCase, .StringUtils.compareWithCase, .StringUtils.toLowerCase

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
pack-priv final ConfigSnapshot
pack-priv final Map<Object, Object>
pack-priv final List<ConfigLine>
pack-priv volatile ConfigSnapshot.SectionNames
pack-priv volatile List<ConfigLine>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private static int
compare2(String aSection, String aSubsection, String aName, String bSection, String bSubsection, String bName)

private int
end(List<ConfigLine> s, int i, String s1, String s2, String n)

private int
find(List<ConfigLine> s, String s1, String s2, String name)

private int
first(List<ConfigLine> s, int i, String s1, String s2, String n)

pack-priv String[]
get(String section, String subsection, String name)

pack-priv Set<String>
getNames(String section, String subsection)

pack-priv Set<String>
getNames(String section, String subsection, boolean recursive)

private Map<String, String>
getNamesInternal(String section, String subsection, boolean recursive)

pack-priv Set<String>
pack-priv Set<String>
private ConfigSnapshot.SectionNames
private static List<ConfigLine>
private List<ConfigLine>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

baseStateback to summary
pack-priv final ConfigSnapshot baseState
cacheback to summary
pack-priv final Map<Object, Object> cache
entryListback to summary
pack-priv final List<ConfigLine> entryList
namesback to summary
pack-priv volatile ConfigSnapshot.SectionNames names
sortedback to summary
pack-priv volatile List<ConfigLine> sorted

Constructor Detail

ConfigSnapshotback to summary
pack-priv ConfigSnapshot(List<ConfigLine> entries, ConfigSnapshot base)

Method Detail

compare2back to summary
private static int compare2(String aSection, String aSubsection, String aName, String bSection, String bSubsection, String bName)
endback to summary
private int end(List<ConfigLine> s, int i, String s1, String s2, String n)
findback to summary
private int find(List<ConfigLine> s, String s1, String s2, String name)
firstback to summary
private int first(List<ConfigLine> s, int i, String s1, String s2, String n)
getback to summary
pack-priv String[] get(String section, String subsection, String name)
getNamesback to summary
pack-priv Set<String> getNames(String section, String subsection)
getNamesback to summary
pack-priv Set<String> getNames(String section, String subsection, boolean recursive)
getNamesInternalback to summary
private Map<String, String> getNamesInternal(String section, String subsection, boolean recursive)
getSectionsback to summary
pack-priv Set<String> getSections()
getSubsectionsback to summary
pack-priv Set<String> getSubsections(String section)
namesback to summary
private ConfigSnapshot.SectionNames names()
sortback to summary
private static List<ConfigLine> sort(List<ConfigLine> in)
sortedback to summary
private List<ConfigLine> sorted()
org.eclipse.jgit.lib back to summary

private Class ConfigSnapshot.CaseFoldingSet

extends AbstractSet<String>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Map<String, String>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public boolean
contains(Object
element whose presence in this set is to be tested
needle
)

Overrides java.util.AbstractCollection.contains.

Implements java.util.Set.contains, java.util.Collection.contains.

Returns true if this set contains the specified element.

public Iterator<String>
iterator()

Implements abstract java.util.AbstractCollection.iterator.

Implements java.util.Set.iterator, java.util.Collection.iterator.

Returns an iterator over the elements in this set.

public int
size()

Implements abstract java.util.AbstractCollection.size.

Implements java.util.Set.size, java.util.Collection.size.

Returns the number of elements in this set (its cardinality).

Inherited from java.util.AbstractSet:
equalshashCoderemoveAll

Field Detail

namesback to summary
private final Map<String, String> names

Constructor Detail

CaseFoldingSetback to summary
pack-priv CaseFoldingSet(Map<String, String> names)

Method Detail

containsback to summary
public boolean contains(Object needle)

Overrides java.util.AbstractCollection.contains.

Implements java.util.Set.contains, java.util.Collection.contains.

Doc from java.util.Set.contains.

Returns true if this set contains the specified element. More formally, returns true if and only if this set contains an element e such that Objects.equals(o, e).

Parameters
needle:Object

element whose presence in this set is to be tested

Returns:boolean

true if this set contains the specified element

Annotations
@Override
iteratorback to summary
public Iterator<String> iterator()

Implements abstract java.util.AbstractCollection.iterator.

Implements java.util.Set.iterator, java.util.Collection.iterator.

Doc from java.util.Set.iterator.

Returns an iterator over the elements in this set. The elements are returned in no particular order (unless this set is an instance of some class that provides a guarantee).

Returns:Iterator<String>

an iterator over the elements in this set

Annotations
@Override
sizeback to summary
public int size()

Implements abstract java.util.AbstractCollection.size.

Implements java.util.Set.size, java.util.Collection.size.

Doc from java.util.Set.size.

Returns the number of elements in this set (its cardinality). If this set contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.

Returns:int

the number of elements in this set (its cardinality)

Annotations
@Override
org.eclipse.jgit.lib back to summary

private Class ConfigSnapshot.LineComparator

extends Object
implements Comparator<ConfigLine>
Class Inheritance
All Implemented Interfaces
java.util.Comparator

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public int
compare(ConfigLine
the first object to be compared.
a
,
ConfigLine
the second object to be compared.
b
)

Implements java.util.Comparator.compare.

Compares its two arguments for order.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

LineComparatorback to summary
private LineComparator()

Method Detail

compareback to summary
public int compare(ConfigLine a, ConfigLine b)

Implements java.util.Comparator.compare.

Doc from java.util.Comparator.compare.

Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

The implementor must ensure that signum(compare(x, y)) == -signum(compare(y, x)) for all x and y. (This implies that compare(x, y) must throw an exception if and only if compare(y, x) throws an exception.)

The implementor must also ensure that the relation is transitive: ((compare(x, y)>0) && (compare(y, z)>0)) implies compare(x, z)>0.

Finally, the implementor must ensure that compare(x, y)==0 implies that signum(compare(x, z))==signum(compare(y, z)) for all z.

Parameters
a:ConfigLine

the first object to be compared.

b:ConfigLine

the second object to be compared.

Returns:int

a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

Annotations
@Override
org.eclipse.jgit.lib back to summary

private Class ConfigSnapshot.SectionNames

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final ConfigSnapshot.CaseFoldingSet
pack-priv final Map<String, Set<String>>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

sectionsback to summary
pack-priv final ConfigSnapshot.CaseFoldingSet sections
subsectionsback to summary
pack-priv final Map<String, Set<String>> subsections

Constructor Detail

SectionNamesback to summary
pack-priv SectionNames(ConfigSnapshot cfg)