Github user isper3at commented on a diff in the pull request:

    https://github.com/apache/incubator-rya/pull/153#discussion_r132585736
  
    --- Diff: 
common/rya.api/src/main/java/org/apache/rya/api/domain/RyaTypeUtils.java ---
    @@ -24,12 +24,44 @@
     import org.joda.time.DateTimeZone;
     import org.joda.time.format.ISODateTimeFormat;
     import org.openrdf.model.URI;
    +import org.openrdf.model.impl.URIImpl;
     import org.openrdf.model.vocabulary.XMLSchema;
     
    +import com.google.common.collect.ImmutableMap;
    +
     /**
      * Utility methods for using {@link RyaType}.
      */
     public final class RyaTypeUtils {
    +    private static final ImmutableMap<Class<?>, RyaTypeMethod> METHOD_MAP =
    +        ImmutableMap.<Class<?>, RyaTypeMethod>builder()
    +            .put(Boolean.class, (v) -> booleanRyaType((Boolean) v))
    +            .put(Byte.class, (v) -> byteRyaType((Byte) v))
    +            .put(Date.class, (v) -> dateRyaType((Date) v))
    +            .put(DateTime.class, (v) -> dateRyaType((DateTime) v))
    +            .put(Double.class, (v) -> doubleRyaType((Double) v))
    +            .put(Float.class, (v) -> floatRyaType((Float) v))
    +            .put(Integer.class, (v) -> intRyaType((Integer) v))
    +            .put(Long.class, (v) -> longRyaType((Long) v))
    +            .put(Short.class, (v) -> shortRyaType((Short) v))
    +            .put(String.class, (v) -> stringRyaType((String) v))
    +            .put(URI.class, (v) -> uriRyaType((URI) v))
    +            .put(URIImpl.class, (v) -> uriRyaType((URIImpl) v))
    +            .build();
    +
    +    /**
    +     * Represents a method inside the {@link RyaTypeUtils} class that can 
be
    +     * call.
    +     */
    +    private static interface RyaTypeMethod {
    --- End diff --
    
    ignore this


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to