Class ItemsModel
- java.lang.Object
-
- org.glassfish.jersey.examples.linking.model.ItemsModel
-
public class ItemsModel extends Object
Models a three entry list of items and provides a simple means of navigating the list.- Author:
- Mark Hadley, Gerard Davison (gerard.davison at oracle.com)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ItemsModelgetInstance()ItemModelgetItem(String id)StringgetNextId(String id)StringgetPrevId(String id)intgetSize()booleanhasNext(String currentId)booleanhasPrev(String currentId)
-
-
-
Method Detail
-
getInstance
public static ItemsModel getInstance()
-
hasNext
public boolean hasNext(String currentId)
-
hasPrev
public boolean hasPrev(String currentId)
-
getSize
public int getSize()
-
-