Package org.neo4j.graphalgo.core.utils
Enum ProgressLogger.NullProgressLogger
- java.lang.Object
-
- java.lang.Enum<ProgressLogger.NullProgressLogger>
-
- org.neo4j.graphalgo.core.utils.ProgressLogger.NullProgressLogger
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ProgressLogger.NullProgressLogger>
,ProgressLogger
- Enclosing interface:
- ProgressLogger
public static enum ProgressLogger.NullProgressLogger extends java.lang.Enum<ProgressLogger.NullProgressLogger> implements ProgressLogger
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.neo4j.graphalgo.core.utils.ProgressLogger
ProgressLogger.NullProgressLogger
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Field Summary
-
Fields inherited from interface org.neo4j.graphalgo.core.utils.ProgressLogger
NO_MESSAGE, NULL_LOGGER
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.neo4j.logging.Log
getLog()
void
logMessage(java.util.function.Supplier<java.lang.String> msg)
void
logProgress(double percentDone, java.util.function.Supplier<java.lang.String> msg)
void
logProgress(long progress, java.util.function.Supplier<java.lang.String> msgFactory)
void
logProgress(java.util.function.Supplier<java.lang.String> msgFactory)
void
reset(long newTaskVolume)
static ProgressLogger.NullProgressLogger
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ProgressLogger.NullProgressLogger[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.neo4j.graphalgo.core.utils.ProgressLogger
logMessage, logProgress, logProgress, logProgress, logProgress, logProgress
-
-
-
-
Enum Constant Detail
-
INSTANCE
public static final ProgressLogger.NullProgressLogger INSTANCE
-
-
Method Detail
-
values
public static ProgressLogger.NullProgressLogger[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ProgressLogger.NullProgressLogger c : ProgressLogger.NullProgressLogger.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProgressLogger.NullProgressLogger valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
logProgress
public void logProgress(java.util.function.Supplier<java.lang.String> msgFactory)
- Specified by:
logProgress
in interfaceProgressLogger
-
logProgress
public void logProgress(long progress, java.util.function.Supplier<java.lang.String> msgFactory)
- Specified by:
logProgress
in interfaceProgressLogger
-
logMessage
public void logMessage(java.util.function.Supplier<java.lang.String> msg)
- Specified by:
logMessage
in interfaceProgressLogger
-
reset
public void reset(long newTaskVolume)
- Specified by:
reset
in interfaceProgressLogger
-
getLog
public org.neo4j.logging.Log getLog()
- Specified by:
getLog
in interfaceProgressLogger
-
logProgress
public void logProgress(double percentDone, java.util.function.Supplier<java.lang.String> msg)
- Specified by:
logProgress
in interfaceProgressLogger
-
-