- -

Interface Reflection.MethodInvoker

+ +

Class Percentage

+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.djrapitops.plan.utilities.analysis.Percentage
    • +
    +
  • +
  • -
    -
    Enclosing class:
    -
    Reflection
    -
    -
    -
    Functional Interface:
    -
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
    -

    -
    @FunctionalInterface
    -public static interface Reflection.MethodInvoker
    -
    An interface for invoking a specific method.
    +
    public class Percentage
    +extends java.lang.Object
  • + +
    +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + +
      Constructors 
      ConstructorDescription
      Percentage() 
      +
    • +
    +
      @@ -147,21 +167,33 @@ public static interface Reflection.MethodInvoker

      Method Summary

      - + - - - + + + + + + + +
      All Methods Instance Methods Abstract Methods All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Objectinvoke​(java.lang.Object target, - java.lang.Object... arguments) -
      Invoke a method on a specific target object.
      -
      static doublecalculate​(double amount, + long total) 
      static doublecalculate​(double amount, + long total, + double whenZeroTotal) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
    @@ -171,6 +203,25 @@ public static interface Reflection.MethodInvoker
    • + +
      +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          Percentage

          +
          public Percentage()
          +
        • +
        +
      • +
      +
        @@ -178,22 +229,25 @@ public static interface Reflection.MethodInvoker

        Method Detail

        - + + + +
          +
        • +

          calculate

          +
          public static double calculate​(double amount,
          +                               long total)
          +
        • +
        +
        • -

          invoke

          -
          java.lang.Object invoke​(java.lang.Object target,
          -                        java.lang.Object... arguments)
          -
          Invoke a method on a specific target object.
          -
          -
          Parameters:
          -
          target - - the target object, or NULL for a static method.
          -
          arguments - - the arguments to pass to the method.
          -
          Returns:
          -
          The return value, or NULL if is void.
          -
          +

          calculate

          +
          public static double calculate​(double amount,
          +                               long total,
          +                               double whenZeroTotal)
        @@ -249,13 +303,13 @@ public static interface Reflection.MethodInvokerSummary: 
      • Nested | 
      • Field | 
      • -
      • Constr | 
      • +
      • Constr | 
      • Method
diff --git a/all/com/djrapitops/plan/utilities/analysis/package-summary.html b/all/com/djrapitops/plan/utilities/analysis/package-summary.html index 9e9752ca2..72517bcc3 100644 --- a/all/com/djrapitops/plan/utilities/analysis/package-summary.html +++ b/all/com/djrapitops/plan/utilities/analysis/package-summary.html @@ -138,6 +138,10 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); +Percentage +  + + TimerAverage
Utility for averaging time based data.
diff --git a/all/com/djrapitops/plan/utilities/analysis/package-tree.html b/all/com/djrapitops/plan/utilities/analysis/package-tree.html index 2fc96f5af..a1018128a 100644 --- a/all/com/djrapitops/plan/utilities/analysis/package-tree.html +++ b/all/com/djrapitops/plan/utilities/analysis/package-tree.html @@ -107,6 +107,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • com.djrapitops.plan.utilities.analysis.Average
  • com.djrapitops.plan.utilities.analysis.Maximum.ForInteger
  • com.djrapitops.plan.utilities.analysis.Median<T>
  • +
  • com.djrapitops.plan.utilities.analysis.Percentage
  • com.djrapitops.plan.utilities.analysis.TimerAverage
  • diff --git a/all/com/djrapitops/plan/utilities/chat/DefaultFontInfo.html b/all/com/djrapitops/plan/utilities/chat/DefaultFontInfo.html index 60eff8ebd..426b78be9 100644 --- a/all/com/djrapitops/plan/utilities/chat/DefaultFontInfo.html +++ b/all/com/djrapitops/plan/utilities/chat/DefaultFontInfo.html @@ -448,7 +448,7 @@ extends java.lang.Enum<  -RIGHT_PERENTHESIS +RIGHT_PARENTHESIS   @@ -1270,13 +1270,13 @@ the order they are declared.
    public static final DefaultFontInfo LEFT_PARENTHESIS
    - +
    • -

      RIGHT_PERENTHESIS

      -
      public static final DefaultFontInfo RIGHT_PERENTHESIS
      +

      RIGHT_PARENTHESIS

      +
      public static final DefaultFontInfo RIGHT_PARENTHESIS
    diff --git a/all/com/djrapitops/plan/utilities/java/Reflection.html b/all/com/djrapitops/plan/utilities/java/Reflection.html index 6ed39e040..64f3a32cc 100644 --- a/all/com/djrapitops/plan/utilities/java/Reflection.html +++ b/all/com/djrapitops/plan/utilities/java/Reflection.html @@ -26,7 +26,7 @@ catch(err) { } //--> -var data = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9}; +var data = {"i0":9,"i1":9,"i2":9}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -163,13 +163,6 @@ extends java.lang.Object
    An interface for retrieving the field content.
    - -static interface  -
    Reflection.MethodInvoker - -
    An interface for invoking a specific method.
    - - @@ -205,31 +198,12 @@ extends java.lang.Object -static Reflection.MethodInvoker -getMethod​(java.lang.Class<?> clazz, - java.lang.String methodName, - java.lang.Class<?>... params) - -
    Search for the first publicly and privately defined method of the given name and parameter count.
    - - - static java.lang.Class<?> getMinecraftClass​(java.lang.String name)
    Retrieve a class in the net.minecraft.server.VERSION.* package.
    - -static Reflection.MethodInvoker -getTypedMethod​(java.lang.Class<?> clazz, - java.lang.String methodName, - java.lang.Class<?> returnType, - java.lang.Class<?>... params) - -
    Search for the first publicly and privately defined method of the given name and parameter count.
    - - - - - -
      -
    • -

      getMethod

      -
      public static Reflection.MethodInvoker getMethod​(java.lang.Class<?> clazz,
      -                                                 java.lang.String methodName,
      -                                                 java.lang.Class<?>... params)
      -
      Search for the first publicly and privately defined method of the given name and parameter count.
      -
      -
      Parameters:
      -
      clazz - - a class to start with.
      -
      methodName - - the method name, or NULL to skip.
      -
      params - - the expected parameters.
      -
      Returns:
      -
      An object that invokes this specific method.
      -
      Throws:
      -
      java.lang.IllegalStateException - If we cannot find this method.
      -
      -
    • -
    - - - -
      -
    • -

      getTypedMethod

      -
      public static Reflection.MethodInvoker getTypedMethod​(java.lang.Class<?> clazz,
      -                                                      java.lang.String methodName,
      -                                                      java.lang.Class<?> returnType,
      -                                                      java.lang.Class<?>... params)
      -
      Search for the first publicly and privately defined method of the given name and parameter count.
      -
      -
      Parameters:
      -
      clazz - - a class to start with.
      -
      methodName - - the method name, or NULL to skip.
      -
      returnType - - the expected return type, or NULL to ignore.
      -
      params - - the expected parameters.
      -
      Returns:
      -
      An object that invokes this specific method.
      -
      Throws:
      -
      java.lang.IllegalStateException - If we cannot find this method.
      -
      -
    • -
    diff --git a/all/com/djrapitops/plan/utilities/java/ThrowableUtils.html b/all/com/djrapitops/plan/utilities/java/ThrowableUtils.html index b878eda79..51c518112 100644 --- a/all/com/djrapitops/plan/utilities/java/ThrowableUtils.html +++ b/all/com/djrapitops/plan/utilities/java/ThrowableUtils.html @@ -132,7 +132,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    public class ThrowableUtils
     extends java.lang.Object
    -
    Utilities for manipulating different Throwables.
    +
    Utilities for manipulating different Throwable stack traces.