Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
14792 manas 1
/**
2
 * Copyright 2010-present Facebook.
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *    http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16
 
17
package com.facebook.widget;
18
 
19
import com.facebook.model.GraphObject;
20
 
21
interface GraphObjectCursor<T extends GraphObject> {
22
    boolean isFromCache();
23
 
24
    boolean areMoreObjectsAvailable();
25
 
26
    int getCount();
27
 
28
    int getPosition();
29
 
30
    boolean move(int offset);
31
 
32
    boolean moveToPosition(int position);
33
 
34
    boolean moveToFirst();
35
 
36
    boolean moveToLast();
37
 
38
    boolean moveToNext();
39
 
40
    boolean moveToPrevious();
41
 
42
    boolean isFirst();
43
 
44
    boolean isLast();
45
 
46
    boolean isBeforeFirst();
47
 
48
    boolean isAfterLast();
49
 
50
    T getGraphObject();
51
 
52
    void close();
53
 
54
    boolean isClosed();
55
}