Skip to content

Commit

Permalink
Add default to switch statement
Browse files Browse the repository at this point in the history
  • Loading branch information
oliemansm committed Dec 25, 2020
1 parent 8ce86c7 commit 8328525
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,18 @@
import java.util.ArrayList;
import java.util.Base64;
import java.util.List;
import lombok.AccessLevel;
import lombok.RequiredArgsConstructor;

/**
* @author <a href="mailto:[email protected]">oEmbedler Inc.</a>
*/
@RequiredArgsConstructor(access = AccessLevel.PROTECTED)
public abstract class SimpleListConnection<T> {

private static final String DUMMY_CURSOR_PREFIX = "simple-cursor";
private final List<T> data;

protected SimpleListConnection(List<T> data) {
this.data = data;
}

public abstract <E extends EdgeObjectType<T>> E createEdgeObject();

public abstract <C extends ConnectionObjectType<? extends EdgeObjectType<T>, ? extends PageInfoObjectType>> C createConnectionObject();
Expand Down

0 comments on commit 8328525

Please sign in to comment.