public abstract class DurationSpec
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DurationSpec.IntMillisecondsBound
Represents a duration used for Cassandra configuration.
|
static class |
DurationSpec.IntMinutesBound
Represents a duration used for Cassandra configuration.
|
static class |
DurationSpec.IntSecondsBound
Represents a duration used for Cassandra configuration.
|
static class |
DurationSpec.LongMillisecondsBound
Represents a duration used for Cassandra configuration.
|
static class |
DurationSpec.LongNanosecondsBound
Represents a duration used for Cassandra configuration.
|
static class |
DurationSpec.LongSecondsBound
Represents a duration used for Cassandra configuration.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
long |
quantity() |
long |
to(java.util.concurrent.TimeUnit targetUnit) |
java.lang.String |
toString() |
java.util.concurrent.TimeUnit |
unit() |
public long quantity()
public java.util.concurrent.TimeUnit unit()
public long to(java.util.concurrent.TimeUnit targetUnit)
targetUnit
- the time unitpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2009-2022 The Apache Software Foundation