Groovy Duration Extensions

Groovy extensions for converting Numbers to a Duration

License

License

MIT
Categories

Categories

KeY Data Data Formats Formal Verification
GroupId

GroupId

com.github.tddmonkey
ArtifactId

ArtifactId

rx-dynamodb
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

Groovy Duration Extensions
Groovy extensions for converting Numbers to a Duration
Project URL

Project URL

https://github.com/tddmonkey/groovy-extensions
Source Code Management

Source Code Management

https://github.com/tddmonkey/groovy-extensions.git

Download rx-dynamodb

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.tddmonkey/rx-dynamodb/ -->
<dependency>
    <groupId>com.github.tddmonkey</groupId>
    <artifactId>rx-dynamodb</artifactId>
    <version>0.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.tddmonkey/rx-dynamodb/
implementation 'com.github.tddmonkey:rx-dynamodb:0.0.1'
// https://jarcasting.com/artifacts/com.github.tddmonkey/rx-dynamodb/
implementation ("com.github.tddmonkey:rx-dynamodb:0.0.1")
'com.github.tddmonkey:rx-dynamodb:jar:0.0.1'
<dependency org="com.github.tddmonkey" name="rx-dynamodb" rev="0.0.1">
  <artifact name="rx-dynamodb" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.tddmonkey', module='rx-dynamodb', version='0.0.1')
)
libraryDependencies += "com.github.tddmonkey" % "rx-dynamodb" % "0.0.1"
[com.github.tddmonkey/rx-dynamodb "0.0.1"]

Dependencies

compile (2)

Group / Artifact Type Version
com.github.tddmonkey : rx-aws-common jar 0.0.1
io.reactivex : rxjava jar 1.1.0

provided (1)

Group / Artifact Type Version
com.amazonaws : aws-java-sdk-dynamodb jar 1.10.52

Project Modules

There are no modules declared in this project.

Groovy Time Extensions

This is a simple library that adds extensions methods to Groovy numbers to generate a Java 8 Duration object

Usage

Duration.of(8, ChronoUnit.SECONDS) == 8.seconds()

The following units are available:

NANOS
MILLIS
SECONDS
HOURS	
HALF_DAYS
DAYS

Building

Groovy Extensions is built using the Gradle wrapper and uses Spock for tests

$ ./gradlew test

Versions

Version
0.0.1