Codota Logo
SMFComponentType
Code IndexAdd Codota to your IDE (free)

How to use
SMFComponentType
in
com.io7m.smfj.core

Best Java code snippets using com.io7m.smfj.core.SMFComponentType (Showing top 13 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: com.io7m.smfj/com.io7m.smfj.validation.api

private static SMFSchemaValidationError errorWrongComponentType(
 final SMFAttributeName name,
 final SMFComponentType expected,
 final SMFComponentType received)
{
 final StringBuilder sb = new StringBuilder(128);
 sb.append("Attribute is not of the expected type.");
 sb.append(System.lineSeparator());
 sb.append("  Attribute: ");
 sb.append(name.value());
 sb.append(System.lineSeparator());
 sb.append("  Expected:  ");
 sb.append(expected.getName());
 sb.append(System.lineSeparator());
 sb.append("  Received:  ");
 sb.append(received.getName());
 sb.append(System.lineSeparator());
 return SMFSchemaValidationError.of(sb.toString(), Optional.empty());
}
origin: com.io7m.smfj/com.io7m.smfj.core

private boolean equalTo(SMFAttribute another) {
 return name.equals(another.name)
   && componentType.equals(another.componentType)
   && componentCount == another.componentCount
   && componentSizeBits == another.componentSizeBits
   && componentSizeOctets == another.componentSizeOctets
   && sizeOctets == another.sizeOctets;
}
origin: com.io7m.smfj/io7m-smfj-core

/**
 * Computes a hash code from attributes: {@code name}, {@code componentType}, {@code componentCount}, {@code componentSizeBits}, {@code componentSizeOctets}, {@code sizeOctets}.
 * @return hashCode value
 */
@Override
public int hashCode() {
 int h = 5381;
 h += (h << 5) + name.hashCode();
 h += (h << 5) + componentType.hashCode();
 h += (h << 5) + componentCount;
 h += (h << 5) + componentSizeBits;
 h += (h << 5) + componentSizeOctets;
 h += (h << 5) + sizeOctets;
 return h;
}
origin: com.io7m.smfj/com.io7m.smfj.validation.main

private Validation<List<SMFParseError>, Optional<SMFComponentType>>
parseComponentType(
 final String text)
{
 if (Objects.equals(text, "-")) {
  return valid(Optional.empty());
 }
 try {
  return valid(Optional.of(SMFComponentType.of(text)));
 } catch (final IllegalArgumentException e) {
  return invalid(List.of(SMFParseError.of(
   this.reader.position(),
   "Could not parse component type: " + e.getMessage(),
   Optional.of(e))));
 }
}
origin: com.io7m.smfj/io7m-smfj-format-text

sb.append(a.componentCount());
sb.append(" components of type ");
sb.append(a.componentType().name());
sb.append(System.lineSeparator());
sb.append("  Received:       ");
sb.append(count);
sb.append(" components of type ");
sb.append(type.name());
sb.append(System.lineSeparator());
this.state.transition(SerializerState.STATE_FAILED);
origin: com.io7m.smfj/com.io7m.smfj.processing.main

 type = Optional.empty();
} else {
 type = Optional.of(SMFComponentType.of(type_text));
origin: com.io7m.smfj/com.io7m.smfj.processing.main

 sb.append(this.config.componentType().get().getName());
} else {
 sb.append(" of any type");
origin: com.io7m.smfj/io7m-smfj-format-text

 SMFAttributeName.of(line.get(1));
final SMFComponentType type =
 SMFComponentType.of(line.get(2));
final int count =
 Integer.parseUnsignedInt(line.get(3));
origin: com.io7m.smfj/io7m-smfj-core

private boolean equalTo(SMFAttribute another) {
 return name.equals(another.name)
   && componentType.equals(another.componentType)
   && componentCount == another.componentCount
   && componentSizeBits == another.componentSizeBits
   && componentSizeOctets == another.componentSizeOctets
   && sizeOctets == another.sizeOctets;
}
origin: com.io7m.smfj/com.io7m.smfj.core

/**
 * Computes a hash code from attributes: {@code name}, {@code componentType}, {@code componentCount}, {@code componentSizeBits}, {@code componentSizeOctets}, {@code sizeOctets}.
 * @return hashCode value
 */
@Override
public int hashCode() {
 int h = 5381;
 h += (h << 5) + name.hashCode();
 h += (h << 5) + componentType.hashCode();
 h += (h << 5) + componentCount;
 h += (h << 5) + componentSizeBits;
 h += (h << 5) + componentSizeOctets;
 h += (h << 5) + sizeOctets;
 return h;
}
origin: com.io7m.smfj/com.io7m.smfj.validation.main

 writer.append(opt_type.get().getName());
} else {
 writer.append("-");
origin: com.io7m.smfj/io7m-smfj-format-text

"attribute \"%s\" %s %s %s",
attribute.name().value(),
attribute.componentType().getName(),
Long.toUnsignedString((long) attribute.componentCount()),
Long.toUnsignedString((long) attribute.componentSizeBits())));
origin: com.io7m.smfj/com.io7m.smfj.processing.main

attr.name().value(),
Integer.valueOf(attr.componentCount()),
attr.componentType().getName(),
Integer.valueOf(attr.componentSizeBits()))));
com.io7m.smfj.coreSMFComponentType

Javadoc

The kind of components.

Most used methods

  • getName
  • of
    Return a component type for the given name.
  • equals
  • hashCode
  • name

Popular in Java

  • Start an intent from android
  • findViewById (Activity)
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now