Skip to content

Instantly share code, notes, and snippets.

@Nonnull private final Map<DataEvent.DataEventType, Class> typeMap =
ImmutableMap.<DataEvent.DataEventType, Class>builder()
.put(DataEvent.DataEventType.BEACON,AdvertiserDataEvent.class)
.put(DataEvent.DataEventType.IMPRESSION,AdvertiserDataEvent.class)
.put(DataEvent.DataEventType.CLICK,AdvertiserDataEvent.class)
.put(DataEvent.DataEventType.FLIGHT_SEARCH,FlightSearch.class)
.put(DataEvent.DataEventType.HOTEL_SEARCH,HotelSearch.class)
.put(DataEvent.DataEventType.CAR_SEARCH,CarSearch.class)
.put(DataEvent.DataEventType.CRUISE_SEARCH,CruiseSearch.class)
.put(DataEvent.DataEventType.VACATION_SEARCH,VacationSearch.class)
[{"created_at":"2013-01-17T19:58:08Z","data_key":"wAfMgrqFfnOAAwQE","exchange_ids":[{"name":"Turn"}],"id":1,"name":"Test","stabilizer":"generic","taxonomy_code":"WL","updated_at":"2013-03-01T19:27:47Z"},{"created_at":"2013-01-17T20:00:13Z","data_key":"DFnE4xSK7zEse7yH","exchange_ids":[{"name":"Turn"}],"id":2,"name":"Lbierman","stabilizer":"generic","taxonomy_code":"TK","updated_at":"2013-03-01T19:27:47Z"},{"created_at":"2013-01-22T15:35:09Z","data_key":"2r2IOH8VeZHbToIg","exchange_ids":[{"name":"Turn"}],"id":3,"name":"WTH Site 1","stabilizer":"generic","taxonomy_code":"WTH1","updated_at":"2013-03-01T19:27:47Z"},{"created_at":"2013-01-22T15:35:41Z","data_key":"KdLvBQ45jBLIgZFL","exchange_ids":[{"name":"Turn"}],"id":4,"name":"WTH Site 2","stabilizer":"generic","taxonomy_code":"WTH2","updated_at":"2013-03-01T19:27:47Z"},{"created_at":"2013-01-22T16:57:32Z","data_key":"13gVb9pQbw2uU7yY","exchange_ids":[{"name":"Turn"}],"id":5,"name":"Room Key New_Jan_2013","stabilizer":"roomkey","taxonomy_code":"RK","updated_at":

Keybase proof

I hereby claim:

  • I am danfitch on github.
  • I am danfitch (https://keybase.io/danfitch) on keybase.
  • I have a public key ASBh8VEA_tKNz6KRbuYV2ldssP4-YGplIc5It1w-QK-cygo

To claim this, I am signing this object:

Given an array of strings [‘one’, ‘two’, ‘three’, ‘three’, ‘four’] write a function that will remove duplicates returning [‘one’, ‘two’, ‘three’, ‘four’]
func (arry) {
...
return arr
}