Class ExaminableProperty


  • public abstract class ExaminableProperty
    extends Object
    An examinable property.
    Since:
    1.0.0
    • Method Detail

      • name

        @NotNull
        public abstract @NotNull String name()
        Gets the name.
        Returns:
        the name
        Since:
        1.0.0
      • examine

        @NotNull
        public abstract <R> R examine​(@NotNull
                                      @NotNull Examiner<? extends R> examiner)
        Gets the value.
        Type Parameters:
        R - the result type
        Parameters:
        examiner - the examiner
        Returns:
        the value
        Since:
        1.0.0
      • of

        @NotNull
        public static @NotNull ExaminableProperty of​(@NotNull
                                                     @NotNull String name,
                                                     @Nullable
                                                     @Nullable Object value)
        Creates a property.
        Parameters:
        name - the name
        value - the value
        Returns:
        the property
        Since:
        1.0.0
      • of

        @NotNull
        public static @NotNull ExaminableProperty of​(@NotNull
                                                     @NotNull String name,
                                                     @Nullable
                                                     @Nullable String value)
        Creates a property.
        Parameters:
        name - the name
        value - the value
        Returns:
        the property
        Since:
        1.0.0
      • of

        @NotNull
        public static @NotNull ExaminableProperty of​(@NotNull
                                                     @NotNull String name,
                                                     boolean value)
        Creates a property.
        Parameters:
        name - the name
        value - the value
        Returns:
        the property
        Since:
        1.0.0
      • of

        @NotNull
        public static @NotNull ExaminableProperty of​(@NotNull
                                                     @NotNull String name,
                                                     boolean[] value)
        Creates a property.
        Parameters:
        name - the name
        value - the value
        Returns:
        the property
        Since:
        1.0.0
      • of

        @NotNull
        public static @NotNull ExaminableProperty of​(@NotNull
                                                     @NotNull String name,
                                                     byte value)
        Creates a property.
        Parameters:
        name - the name
        value - the value
        Returns:
        the property
        Since:
        1.0.0
      • of

        @NotNull
        public static @NotNull ExaminableProperty of​(@NotNull
                                                     @NotNull String name,
                                                     byte[] value)
        Creates a property.
        Parameters:
        name - the name
        value - the value
        Returns:
        the property
        Since:
        1.0.0
      • of

        @NotNull
        public static @NotNull ExaminableProperty of​(@NotNull
                                                     @NotNull String name,
                                                     char value)
        Creates a property.
        Parameters:
        name - the name
        value - the value
        Returns:
        the property
        Since:
        1.0.0
      • of

        @NotNull
        public static @NotNull ExaminableProperty of​(@NotNull
                                                     @NotNull String name,
                                                     char[] value)
        Creates a property.
        Parameters:
        name - the name
        value - the value
        Returns:
        the property
        Since:
        1.0.0
      • of

        @NotNull
        public static @NotNull ExaminableProperty of​(@NotNull
                                                     @NotNull String name,
                                                     double value)
        Creates a property.
        Parameters:
        name - the name
        value - the value
        Returns:
        the property
        Since:
        1.0.0
      • of

        @NotNull
        public static @NotNull ExaminableProperty of​(@NotNull
                                                     @NotNull String name,
                                                     double[] value)
        Creates a property.
        Parameters:
        name - the name
        value - the value
        Returns:
        the property
        Since:
        1.0.0
      • of

        @NotNull
        public static @NotNull ExaminableProperty of​(@NotNull
                                                     @NotNull String name,
                                                     float value)
        Creates a property.
        Parameters:
        name - the name
        value - the value
        Returns:
        the property
        Since:
        1.0.0
      • of

        @NotNull
        public static @NotNull ExaminableProperty of​(@NotNull
                                                     @NotNull String name,
                                                     float[] value)
        Creates a property.
        Parameters:
        name - the name
        value - the value
        Returns:
        the property
        Since:
        1.0.0
      • of

        @NotNull
        public static @NotNull ExaminableProperty of​(@NotNull
                                                     @NotNull String name,
                                                     int value)
        Creates a property.
        Parameters:
        name - the name
        value - the value
        Returns:
        the property
        Since:
        1.0.0
      • of

        @NotNull
        public static @NotNull ExaminableProperty of​(@NotNull
                                                     @NotNull String name,
                                                     int[] value)
        Creates a property.
        Parameters:
        name - the name
        value - the value
        Returns:
        the property
        Since:
        1.0.0
      • of

        @NotNull
        public static @NotNull ExaminableProperty of​(@NotNull
                                                     @NotNull String name,
                                                     long value)
        Creates a property.
        Parameters:
        name - the name
        value - the value
        Returns:
        the property
        Since:
        1.0.0
      • of

        @NotNull
        public static @NotNull ExaminableProperty of​(@NotNull
                                                     @NotNull String name,
                                                     long[] value)
        Creates a property.
        Parameters:
        name - the name
        value - the value
        Returns:
        the property
        Since:
        1.0.0
      • of

        @NotNull
        public static @NotNull ExaminableProperty of​(@NotNull
                                                     @NotNull String name,
                                                     short value)
        Creates a property.
        Parameters:
        name - the name
        value - the value
        Returns:
        the property
        Since:
        1.0.0
      • of

        @NotNull
        public static @NotNull ExaminableProperty of​(@NotNull
                                                     @NotNull String name,
                                                     short[] value)
        Creates a property.
        Parameters:
        name - the name
        value - the value
        Returns:
        the property
        Since:
        1.0.0