aboutsummaryrefslogtreecommitdiffstats
path: root/AndroidAsync/src/com/koushikdutta/async/parser/AsyncParserBase.java
blob: 337c4c1ee431dab3c5dedc04597934798fbd9fd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package com.koushikdutta.async.parser;

import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;

/**
 * Created by koush on 3/6/15.
 */
public abstract class AsyncParserBase<T> implements AsyncParser<T> {
    @Override
    public Type getType() {
        return ((ParameterizedType)getClass().getGenericSuperclass()).getActualTypeArguments()[0];
    }
}