I hereby claim:
- I am rainoboy97 on github.
- I am raino (https://keybase.io/raino) on keybase.
- I have a public key ASDiEbqdbCoA9Y0CUDkMX0EDNdntVYMYYEeIixJBuZTySAo
To claim this, I am signing this object:
#!/bin/bash | |
# Created by RainoBoy97 | |
# https://gist.github.com/RainoBoy97/9a63286e7c034a2ff8da68631ccd0898 | |
mongo --quiet --eval ' | |
db = db.getSiblingDB("admin"); | |
var dbs = db.adminCommand("listDatabases").databases; | |
var totalCount = 0; |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
public static <T> T cast(Object object, Class<T> type) { | |
return cast(object, type, null); | |
} | |
public static <T> T cast(Object object, Class<T> type, T def) { | |
Check.notNull(object, "object cannot be null"); | |
Check.notNull(type, "type cannot be null"); | |
return isInstance(object, type) ? type.cast(object) : def; | |
} | |