Skip to content

Instantly share code, notes, and snippets.

View JKCooper2's full-sized avatar

Jesse Cooper JKCooper2

  • EthicalJobs.com.au
  • Melbourne, Australia
View GitHub Profile

Random agent with action_space value checking

@JKCooper2
JKCooper2 / utility.cls
Last active September 19, 2017 00:33
APEX sObject sObjectHasProperty, sObjectHasPath, getSObjectPath (including default)
/*
Provides utility functions for checking/accessing sObject properties
Updates:
- Namespace no longer required
- Replaced getPopulatedFieldsAsMap() with a plain try catch to improve speed
- Allowed for returns of SObjects
- Throw out SObjectException where the field exists but wasn't queried
To Do: