Skip to content

Instantly share code, notes, and snippets.

@goober
goober / gist:861aa593b515e8d31aba53b989031f28
Last active June 15, 2018 07:41
Hipchat custom add-on
{
"name": "Sample Addon",
"description": "Sample HipChat Addon",
"key": "sample-hipchat-addon",
"links": {
"homepage": "https://my.server.com/my-addon",
"self": "https://my.server.com/my-addon/capabilities.json"
},
"vendor": {
"name": "Atlassian",
@goober
goober / keybase.md
Last active November 17, 2016 18:49

Keybase proof

I hereby claim:

  • I am goober on github.
  • I am goober (https://keybase.io/goober) on keybase.
  • I have a public key ASBu-AOGrDiLxtMhMAid-nkmymEBBOSIKFBHP5n4LqvYxQo

To claim this, I am signing this object:

public class ListUtils {
/**
* Null safe method for getting a Collection.
* Should be used when using an enhanced for-loop, which is not null safe.
*
* @param pCollection
* A collection which could be null.
* @return If the given collection is null, an empty collection (immutable) will be returned. Otherwise the provided
* collection will be returned.