Skip to content

Commit

Permalink
refactor diff wrappers and encoding apis
Browse files Browse the repository at this point in the history
  • Loading branch information
ztellman committed Dec 15, 2019
1 parent bd81b21 commit eb89a33
Show file tree
Hide file tree
Showing 49 changed files with 1,294 additions and 1,419 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# 0.2.0

### Fixes

* fixed issue where `DirectedGraph.edges()` returned edges pointing in the wrong direction

### Changes

* moved `Lists.EMPTY`, `Sets.EMPTY`, and `Maps.EMPTY` to `List.EMPTY`, `Set.EMPTY`, and `Map.EMPTY` respectively
* moved `Lists.VirtualList`, `Sets.VirtualSet`, and `Maps.VirtualMap` to `diffs.DiffList`, `diffs.DiffSet`, and `diffs.DiffMap` respectively
* moved `Lists.Concat` to `diffs.ConcatList`
* subsumed `Lists.Slice` into `diffs.DiffList`

2 changes: 2 additions & 0 deletions src/io/lacuna/bifurcan/DirectedAcyclicGraph.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import static io.lacuna.bifurcan.Graphs.MERGE_LAST_WRITE_WINS;

/**
* A directed graph which will throw a {@code DirectedAcyclicGraph.CycleException} if any new edge creates a cycle.
*
* @author ztellman
*/
public class DirectedAcyclicGraph<V, E> implements IGraph<V, E> {
Expand Down
4 changes: 2 additions & 2 deletions src/io/lacuna/bifurcan/DurableCollections.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@

public class DurableCollections {

public static IDurableCollection open(Path path, DurableEncoding encoding) {
public static IDurableCollection open(Path path, IDurableEncoding encoding) {
IDurableCollection.Root root = Roots.open(path);
DurableInput in = root.bytes();
return Util.decodeCollection(in.readPrefix(), root, encoding, in);
}

public static IDurableCollection migrate(Path path, DurableEncoding oldEncoding, DurableEncoding newEncoding) {
public static IDurableCollection migrate(Path path, IDurableEncoding oldEncoding, IDurableEncoding newEncoding) {
return null;
}

Expand Down
174 changes: 0 additions & 174 deletions src/io/lacuna/bifurcan/DurableEncoding.java

This file was deleted.

Loading

0 comments on commit eb89a33

Please sign in to comment.