SoftBank.Note.compare

You're seeing just the function compare, go back to SoftBank.Note module for more information.

Specs

compare(t(), t()) :: t()

Compares two SoftBank.Note structs with each other. They must each be of the same currency and then their amounts are compared

Example:

iex> SoftBank.Note.compare(SoftBank.Note.new(100, :USD), SoftBank.Note.new(100, :USD))
0
iex> SoftBank.Note.compare(SoftBank.Note.new(100, :USD), SoftBank.Note.new(101, :USD))
-1
iex> SoftBank.Note.compare(SoftBank.Note.new(101, :USD), SoftBank.Note.new(100, :USD))
1