Class SetFn<T extends ACell>

All Implemented Interfaces:
IValidated, IWriteable, IFn<CVMBool>

public class SetFn<T extends ACell> extends ADataFn<CVMBool>
  • Constructor Details

    • SetFn

      public SetFn(ASet<T> m)
  • Method Details

    • wrap

      public static <T extends ACell> SetFn<T> wrap(ASet<T> m)
    • invoke

      public Context invoke(Context context, ACell[] args)
      Description copied from interface: IFn
      Invoke this function in the given context.
      Specified by:
      invoke in interface IFn<T extends ACell>
      Overrides:
      invoke in class ADataFn<CVMBool>
      Parameters:
      context - Context in which the function is to be executed
      args - Arguments to the function
      Returns:
      Context containing result of function invocation, or an exceptional value
    • print

      public boolean print(BlobBuilder sb, long limit)
      Description copied from class: AObject
      Prints this Object to a readable String Representation. SECURITY: Must halt and return false in O(1) time when limit of printing is exceeded otherwise DoS attacks may be possible.
      Specified by:
      print in class AObject
      Parameters:
      sb - BlobBuilder to append to. May be partially written if print limit exceeded
      limit - Limit of printing in string bytes
      Returns:
      True if fully printed within limit, false otherwise