public static ObjectId hashTree(@Nullable List<Node> trees, @Nullable List<Node> features, @Nullable Iterable<Bucket> buckets) { final List<Node> t = trees == null ? ImmutableList.of() : trees; final List<Node> f = features == null ? ImmutableList.of() : features; final Iterable<Bucket> b = buckets == null ? Collections.emptySet() : buckets; return hash(h -> HashObjectFunnels.tree(h, t, f, b)); }
public static ObjectId hashFeatureType(FeatureType featureType) { checkNotNull(featureType); return hash(h -> HashObjectFunnels.featureType(h, featureType)); }
public static ObjectId hashTag(String name, ObjectId commitId, String message, RevPerson tagger) { return hash(h -> HashObjectFunnels.tag(h, name, commitId, message, tagger)); }
public static ObjectId hashTag(String name, ObjectId commitId, String message, RevPerson tagger) { return hash((h) -> HashObjectFunnels.tag(h, name, commitId, message, tagger)); }
public static ObjectId hashCommit(ObjectId treeId, ImmutableList<ObjectId> parentIds, RevPerson author, RevPerson committer, String commitMessage) { return hash((h)->HashObjectFunnels.commit(h, treeId, parentIds, author, committer, commitMessage)); }
@Deprecated public static ObjectId hashTree(@Nullable List<Node> trees, @Nullable List<Node> features, @Nullable SortedMap<Integer, Bucket> buckets) { final List<Node> t = trees == null ? ImmutableList.of() : trees; final List<Node> f = features == null ? ImmutableList.of() : features; final Iterable<Bucket> b = buckets == null ? Collections.emptySet() : buckets.values(); return hash(h -> HashObjectFunnels.tree(h, t, f, b)); }
public static ObjectId hashCommit(ObjectId treeId, List<ObjectId> parentIds, RevPerson author, RevPerson committer, String commitMessage) { return hash(h -> HashObjectFunnels.commit(h, treeId, parentIds, author, committer, commitMessage)); }
public static ObjectId hashFeature(List<Object> values) { return hash(h -> HashObjectFunnels.feature(h, values)); }
public static ObjectId hashFeatureType(FeatureType featureType) { checkNotNull(featureType); return hash((h) -> HashObjectFunnels.featureType(h, featureType)); }
public static ObjectId hashFeature(List<Object> values) { return hash((h) -> HashObjectFunnels.feature(h, values)); }
public static ObjectId hashTree(@Nullable List<Node> trees, @Nullable List<Node> features, @Nullable SortedMap<Integer, Bucket> buckets) { final List<Node> t = trees == null ? ImmutableList.of() : trees; final List<Node> f = features == null ? ImmutableList.of() : features; final SortedMap<Integer, Bucket> b = buckets == null ? ImmutableSortedMap.of() : buckets; return hash((h) -> HashObjectFunnels.tree(h, t, f, b)); }