package SPVM::Comparator::Byte;

1;

=head1 NAME

SPVM::Comparator::Byte - A Callback Type for byte Comparation

=head1 SYNOPSYS
  
  use Comparator::Byte;
  
  my $comparator : Comparator::Byte = method : int ($a : byte, $b : byte); {
    return $a <=> $b;
  };
  
  my $result = $comparator->(3, 5);

=head1 DESCRIPTION

L<Comparator::Byte|SPVM::Comparator::Byte> is an interface type for the callback to compare two byte values.

=head1 INTERFACE METHOD

  required method : int ($a : byte, $b : byte);

The implementation must receive two numbers and return 1 if $a is more than $b, -1 if $x is less than $b, 0 if $a equals $b in the implementation.
