Class MapOps

java.lang.Object
io.quarkus.gizmo2.creator.ops.ObjectOps
io.quarkus.gizmo2.creator.ops.MapOps

public class MapOps extends ObjectOps
Operations on Map.
  • Constructor Details

    • MapOps

      public MapOps(BlockCreator bc, Expr obj)
      Construct a new instance.
      Parameters:
      bc - the block creator (must not be null)
      obj - the list instance (must not be null)
  • Method Details

    • get

      public Expr get(Expr key)
      Generate a call to Map.get(Object).
      Parameters:
      key - the mapping key (must not be null)
      Returns:
      the expression of the result (not null)
    • put

      public Expr put(Expr key, Expr value)
      Generate a call to Map.put(Object, Object).
      Parameters:
      key - the mapping key (must not be null)
      value - the mapping value (must not be null)
      Returns:
      the expression of the result (not null)
    • remove

      public Expr remove(Expr key)
      Generate a call to Map.remove(Object).
      Parameters:
      key - the mapping key to remove (must not be null)
      Returns:
      the expression of the result (not null)
    • isEmpty

      public Expr isEmpty()
      Generate a call to Map.isEmpty().
      Returns:
      the expression of the result (not null)
    • size

      public Expr size()
      Generate a call to Map.size().
      Returns:
      the expression of the result (not null)
    • containsKey

      public Expr containsKey(Expr key)
      Generate a call to Map.containsKey(Object).
      Returns:
      the expression of the result (not null)
    • clear

      public void clear()
      Generate a call to Map.clear().
    • keySet

      public Expr keySet()
      Generate a call to Map.keySet().
      Returns:
      the expression of the result (not null)
    • values

      public Expr values()
      Generate a call to Map.values().
      Returns:
      the expression of the result (not null)
    • entrySet

      public Expr entrySet()
      Generate a call to Map.entrySet().
      Returns:
      the expression of the result (not null)