congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
EntryType.type
Code IndexAdd Tabnine to your IDE (free)

How to use
type
method
in
com.linecorp.centraldogma.common.EntryType

Best Java code snippets using com.linecorp.centraldogma.common.EntryType.type (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
origin: line/centraldogma

/**
 * Creates a new instance.
 */
private MergedEntry(Revision revision, EntryType type, T content, Iterable<String> paths) {
  this.revision = requireNonNull(revision, "revision");
  this.type = requireNonNull(type, "type");
  requireNonNull(content, "content");
  final Class<?> entryType = type.type();
  checkArgument(entryType.isAssignableFrom(content.getClass()),
         "content type: %s (expected: %s)", content.getClass(), entryType);
  this.content = content;
  this.paths = ImmutableList.copyOf(requireNonNull(paths, "paths"));
}
origin: com.linecorp.centraldogma/centraldogma-common

/**
 * Creates a new instance.
 */
private MergedEntry(Revision revision, EntryType type, T content, Iterable<String> paths) {
  this.revision = requireNonNull(revision, "revision");
  this.type = requireNonNull(type, "type");
  requireNonNull(content, "content");
  final Class<?> entryType = type.type();
  checkArgument(entryType.isAssignableFrom(content.getClass()),
         "content type: %s (expected: %s)", content.getClass(), entryType);
  this.content = content;
  this.paths = ImmutableList.copyOf(requireNonNull(paths, "paths"));
}
origin: line/centraldogma

/**
 * Creates a new instance.
 *
 * @param revision the revision of the entry
 * @param path the path of the entry
 * @param type the type of given {@code content}
 * @param content an object of given type {@code T}
 */
private Entry(Revision revision, String path, EntryType type, @Nullable T content) {
  requireNonNull(revision, "revision");
  checkArgument(!revision.isRelative(), "revision: %s (expected: absolute revision)", revision);
  this.revision = revision;
  this.path = requireNonNull(path, "path");
  this.type = requireNonNull(type, "type");
  final Class<?> entryContentType = type.type();
  if (entryContentType == Void.class) {
    checkArgument(content == null, "content: %s (expected: null)", content);
    this.content = null;
  } else {
    @SuppressWarnings("unchecked")
    final T castContent = (T) entryContentType.cast(requireNonNull(content, "content"));
    this.content = castContent;
  }
}
origin: com.linecorp.centraldogma/centraldogma-common-shaded

/**
 * Creates a new instance.
 *
 * @param revision the revision of the entry
 * @param path the path of the entry
 * @param type the type of given {@code content}
 * @param content an object of given type {@code T}
 */
private Entry(Revision revision, String path, EntryType type, @Nullable T content) {
  requireNonNull(revision, "revision");
  checkArgument(!revision.isRelative(), "revision: %s (expected: absolute revision)", revision);
  this.revision = revision;
  this.path = requireNonNull(path, "path");
  this.type = requireNonNull(type, "type");
  final Class<?> entryContentType = type.type();
  if (entryContentType == Void.class) {
    checkArgument(content == null, "content: %s (expected: null)", content);
    this.content = null;
  } else {
    @SuppressWarnings("unchecked")
    final T castContent = (T) entryContentType.cast(requireNonNull(content, "content"));
    this.content = castContent;
  }
}
origin: com.linecorp.centraldogma/centraldogma-common

/**
 * Creates a new instance.
 *
 * @param revision the revision of the entry
 * @param path the path of the entry
 * @param type the type of given {@code content}
 * @param content an object of given type {@code T}
 */
private Entry(Revision revision, String path, EntryType type, @Nullable T content) {
  requireNonNull(revision, "revision");
  checkArgument(!revision.isRelative(), "revision: %s (expected: absolute revision)", revision);
  this.revision = revision;
  this.path = requireNonNull(path, "path");
  this.type = requireNonNull(type, "type");
  final Class<?> entryContentType = type.type();
  if (entryContentType == Void.class) {
    checkArgument(content == null, "content: %s (expected: null)", content);
    this.content = null;
  } else {
    @SuppressWarnings("unchecked")
    final T castContent = (T) entryContentType.cast(requireNonNull(content, "content"));
    this.content = castContent;
  }
}
com.linecorp.centraldogma.commonEntryTypetype

Javadoc

Returns the type of the content returned by Entry#content().

Popular methods of EntryType

  • guessFromPath
    Guesses the EntryType from the specified path.
  • hashCode
  • name

Popular in Java

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getContentResolver (Context)
  • setContentView (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • JLabel (javax.swing)
  • JList (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • 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