Class GQLInlineFragment

  • All Implemented Interfaces:
    GQLFragment, GQLSelection

    @Immutable
    public class GQLInlineFragment
    extends java.lang.Object
    implements GQLFragment
    An inline fragment, defining type-conditional field in-place.
    • Constructor Summary

      Constructors 
      Constructor Description
      GQLInlineFragment​(net.morimekta.providence.descriptor.PMessageDescriptor<?> descriptor, java.util.List<GQLSelection> selectionSet)
      Inline fragment with field set.
    • Constructor Detail

      • GQLInlineFragment

        public GQLInlineFragment​(@Nonnull
                                 net.morimekta.providence.descriptor.PMessageDescriptor<?> descriptor,
                                 @Nonnull
                                 java.util.List<GQLSelection> selectionSet)
        Inline fragment with field set.
        Parameters:
        descriptor - Descriptor of type defined in this fragment.
        selectionSet - Field selectionSet for the fragment.
    • Method Detail

      • getTypeCondition

        @Nonnull
        public net.morimekta.providence.descriptor.PMessageDescriptor<?> getTypeCondition()
        Description copied from interface: GQLFragment
        All fragments represent a specific message type of a union field, or an interface implementation. This should return the descriptor of that message type.
        Specified by:
        getTypeCondition in interface GQLFragment
        Returns:
        The fragment type descriptor.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object