Class App

    • Method Detail

      • appName

        public final String appName()

        The application's name.

        Returns:
        The application's name.
      • protocol

        public final String protocol()

        The IP protocol name or number. The name can be one of tcp, udp, or icmp. For information on possible numbers, see Protocol Numbers.

        Returns:
        The IP protocol name or number. The name can be one of tcp, udp, or icmp. For information on possible numbers, see Protocol Numbers.
      • port

        public final Long port()

        The application's port number, for example 80.

        Returns:
        The application's port number, for example 80.
      • serializableBuilderClass

        public static Class<? extends App.Builder> serializableBuilderClass()
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)