Package com.facebook.swift.codec

Examples of com.facebook.swift.codec.ThriftEnum


        return new ThriftEnumMetadata<>(enumName, enumClass);
    }

    private String extractEnumName(Class<T> enumClass)
    {
        ThriftEnum annotation = enumClass.getAnnotation(ThriftEnum.class);
        if (annotation == null) {
            return enumClass.getSimpleName();
        }
        else if (!annotation.value().isEmpty()) {
            return annotation.value();
        }
        else {
            return enumClass.getSimpleName();
        }
    }
View Full Code Here


        return new ThriftEnumMetadata<>(enumName, enumClass);
    }

    private String extractEnumName(Class<T> enumClass)
    {
        ThriftEnum annotation = enumClass.getAnnotation(ThriftEnum.class);
        if (annotation == null) {
            return enumClass.getSimpleName();
        }
        else if (!annotation.value().isEmpty()) {
            return annotation.value();
        }
        else {
            return enumClass.getSimpleName();
        }
    }
View Full Code Here

TOP

Related Classes of com.facebook.swift.codec.ThriftEnum

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.