congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
StackComponentDto
Code IndexAdd Tabnine to your IDE (free)

How to use
StackComponentDto
in
org.eclipse.che.api.workspace.shared.dto.stack

Best Java code snippets using org.eclipse.che.api.workspace.shared.dto.stack.StackComponentDto (Showing top 2 results out of 315)

origin: org.eclipse.che.core/che-core-api-workspace-shared

public StackComponentDtoImpl(org.eclipse.che.api.workspace.shared.dto.stack.StackComponentDto origin) {
 this.version = origin.getVersion();
 this.name = origin.getName();
}
origin: org.eclipse.che.core/che-core-api-workspace

/** Convert {@link StackImpl} to {@link StackDto}. */
public static StackDto asDto(Stack stack) {
 WorkspaceConfigDto workspaceConfigDto = null;
 if (stack.getWorkspaceConfig() != null) {
  workspaceConfigDto = asDto(stack.getWorkspaceConfig());
 }
 List<StackComponentDto> componentsDto = null;
 if (stack.getComponents() != null) {
  componentsDto =
    stack
      .getComponents()
      .stream()
      .map(
        component ->
          newDto(StackComponentDto.class)
            .withName(component.getName())
            .withVersion(component.getVersion()))
      .collect(toList());
 }
 return newDto(StackDto.class)
   .withId(stack.getId())
   .withName(stack.getName())
   .withDescription(stack.getDescription())
   .withCreator(stack.getCreator())
   .withScope(stack.getScope())
   .withTags(stack.getTags())
   .withComponents(componentsDto)
   .withWorkspaceConfig(workspaceConfigDto);
}
org.eclipse.che.api.workspace.shared.dto.stackStackComponentDto

Most used methods

  • getName
  • getVersion
  • withName
  • withVersion

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSystemService (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Permission (java.security)
    Legacy security code; do not use.
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now