Skip to content

Commit

Permalink
Add java docs
Browse files Browse the repository at this point in the history
  • Loading branch information
easbar committed Dec 13, 2019
1 parent 402028f commit de57fa4
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -83,6 +83,10 @@ public void freeze() {
chGraphs = new ArrayList<>();
}

/**
* Adds a {@link CHGraph} for the given {@link CHProfile}. You need to call this method before calling {@link #create(long)}
* or {@link #loadExisting()}.
*/
public void addCHGraph(CHProfile chProfile) {
baseGraph.checkNotInitialized();
if (getCHProfiles().contains(chProfile)) {
Expand All @@ -91,6 +95,9 @@ public void addCHGraph(CHProfile chProfile) {
chGraphs.add(new CHGraphImpl(chProfile, dir, baseGraph, segmentSize));
}

/**
* @see #addCHGraph(CHProfile)
*/
public void addCHGraphs(List<CHProfile> chProfiles) {
for (CHProfile chProfile : chProfiles) {
addCHGraph(chProfile);
Expand Down

0 comments on commit de57fa4

Please sign in to comment.