This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public with sharing class GlobalDescribe { | |
public static Map<String, SObjectType> TYPES = Schema.getGlobalDescribe(); | |
public static Map<String, DescribeSObjectResult> DESCRIBES = new Map<String, DescribeSObjectResult>(); | |
public static SObjectType type(String name) { | |
return TYPES.get(name); | |
} | |
public static DescribeSObjectResult get(String name) { | |
if(!DESCRIBES.containsKey(name)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public without sharing class FieldDescribe { | |
private static final Map<String, SObjectType> SOBJECT_TYPES = Schema.getGlobalDescribe(); | |
private final SObjectField field; | |
public FieldDescribe(SObjectField field) { | |
this.field = field; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GackAwareIterable implements Iterable<Object> { | |
private final Iterable<Object> iterable; | |
public GackAwareIterable(Iterable<Object> iterable) { | |
this.iterable = iterable; | |
} | |
public Iterator<Object> iterator() { | |
Iterator<Object> result; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aura:component extends="c:valueProvider"> | |
<aura:set attribute="name" value="XYZ" /> | |
<aura:set attribute="values" value="{FOO:'Foo', BAR: 'Bar'}" /> | |
</aura:component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aura:application extends="force:slds"> | |
<c:referenceTest /> | |
</aura:application> |