Created
November 19, 2016 16:12
-
-
Save CalebWhiting/0293d6b14146ac66cf699d15ab0193d5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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