All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.shiftleft.codepropertygraph.cpgloading.ProtoEdgeWithId Maven / Gradle / Ivy

package io.shiftleft.codepropertygraph.cpgloading;

import io.shiftleft.proto.cpg.Cpg;

import java.util.concurrent.atomic.AtomicLong;

public class ProtoEdgeWithId {
  private static AtomicLong edgeIdManager = new AtomicLong(0);

  public final Cpg.CpgStruct.Edge edge;
  public final long id = edgeIdManager.getAndIncrement();

  public ProtoEdgeWithId(Cpg.CpgStruct.Edge edge) {
    this.edge = edge;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy