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

us.ihmc.scs2.definition.robot.sdf.items.SDFURIHolder Maven / Gradle / Ivy

package us.ihmc.scs2.definition.robot.sdf.items;

import java.util.List;
import java.util.stream.Collectors;

public interface SDFURIHolder
{
   String getUri();

   void setUri(String uri);

   public static List toSimpleSDFURIHolders(List uris)
   {
      return uris.stream().map(SimpleSDFURIHolder::new).collect(Collectors.toList());
   }

   public static class SimpleSDFURIHolder implements SDFURIHolder
   {
      private String uri;

      public SimpleSDFURIHolder()
      {
      }

      public SimpleSDFURIHolder(String uri)
      {
         setUri(uri);
      }

      @Override
      public String getUri()
      {
         return uri;
      }

      @Override
      public void setUri(String uri)
      {
         this.uri = uri;
      }
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy