A library of data structures for the Salesforce Apex Language
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
George 53b0987cde
Use the system provided hashCode methods
Previously we were hand calculating the hashCode of the "primitive" objects even though Apex has well defined hashCode's for all of these objects. The implementation now uses the `hashCode` method of the objects instead of calculating internally.
2021-05-13 11:34:06 -04:00
src Use the system provided hashCode methods 2021-05-13 11:34:06 -04:00
README.md initial commit 2017-03-24 12:58:54 -04:00

Apex Struct

Apex Struct is a type safe collection of data structures for the SFDC platform.

It also contains some useful utilities.

For the full documentation please see the generated documentation included in the docs folder.

Sources

Contents

Structs

Starred items are experimental

Self-Balancing Search Trees

  • AVLTree*
  • RedBlackTree*
    • This works properly, but on large data sets it will hit the CPU limit.
  • SkipList*

Graphs

  • ListGraph
  • MatrixGraph

Queues

  • LinkedQueue
  • PriorityQueue (implemented as a heap)

Stacks

  • LinkedStack

Supplementary Utilities

  • BinarySearch
  • DoubleUtils
  • HashCodeUtil
  • Randomizer
  • SinglePivotQuickSort