Skip to content

Instantly share code, notes, and snippets.

View apexlarson's full-sized avatar

Adrian Larson apexlarson

  • Counsyl
  • Ann Arbor
View GitHub Profile
public with sharing class GroupBy
{
public static Map<Id, List<SObject>> ids(String field, List<SObject> records) { /* implementation */ }
public static Map<Id, List<SObject>> ids(SObjectField field, List<SObject> records) { /* implementation */ }
public static Map<Id, List<SObject>> ids(FieldReference field, List<SObject> records) { /* implementation */ }
public static Map<String, List<SObject>> strings(String field, List<SObject> records) { /* implementation */ }
public static Map<String, List<SObject>> strings(SObjectField field, List<SObject> records) { /* implementation */ }
public static Map<String, List<SObject>> strings(FieldReference field, List<SObject> records) { /* implementation */ }
global class Pluck
{
global static Set<Id> ids(List<SObject> records) { /* implementation */ }
global static Set<Id> ids(String field, List<SObject> records) { /* implementation */ }
global static Set<Id> ids(SObjectField field, List<SObject> records) { /* implementation */ }
global static Set<Id> ids(FieldReference field, List<SObject> records) { /* implementation */ }
global static Set<String> strings(String field, List<SObject> records) { /* implementation */ }
global static Set<String> strings(SObjectField field, List<SObject> records) { /* implementation */ }