Skip to content

Instantly share code, notes, and snippets.

@CalebWhiting
Created November 19, 2016 16:12
Show Gist options
  • Save CalebWhiting/0293d6b14146ac66cf699d15ab0193d5 to your computer and use it in GitHub Desktop.
Save CalebWhiting/0293d6b14146ac66cf699d15ab0193d5 to your computer and use it in GitHub Desktop.
package com.unicus.api.wrapper.collection;
import com.unicus.api.wrapper.*;
/**
* @author Caleb Whiting
*/
public class Node extends Wrapper {
public Node(Object reference) {
super(reference);
}
public Node getNext() {
return new Node(getFieldValue("Node#next"));
}
public Node getPrevious() {
return new Node(getFieldValue("Node#previous"));
}
public long getUniqueId() {
return getFieldLong("Node#uid");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment