Java Code Examples for com.intellij.util.io.EnumeratorStringDescriptor

The following examples show how to use com.intellij.util.io.EnumeratorStringDescriptor. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: consulo   Source File: TestStateStorage.java    License: Apache License 2.0 6 votes vote down vote up
@Nonnull
private static ThrowableComputable<PersistentHashMap<String, Record>, IOException> getComputable(final File file) {
  return () -> new PersistentHashMap<>(file, EnumeratorStringDescriptor.INSTANCE, new DataExternalizer<Record>() {
    @Override
    public void save(@Nonnull DataOutput out, Record value) throws IOException {
      out.writeInt(value.magnitude);
      out.writeLong(value.date.getTime());
      out.writeLong(value.configurationHash);
    }

    @Override
    public Record read(@Nonnull DataInput in) throws IOException {
      return new Record(in.readInt(), new Date(in.readLong()), in.readLong());
    }
  }, 4096, CURRENT_VERSION);
}
 
Example 2
Source Project: idea-php-typo3-plugin   Source File: StringSetDataExternalizer.java    License: MIT License 5 votes vote down vote up
public synchronized void save(@NotNull DataOutput out, Set<String> value) throws IOException {
    out.writeInt(value.size());
    Iterator var3 = value.iterator();

    while(var3.hasNext()) {
        String s = (String)var3.next();
        EnumeratorStringDescriptor.INSTANCE.save(out, s);
    }

}
 
Example 3
Source Project: idea-php-typo3-plugin   Source File: StringSetDataExternalizer.java    License: MIT License 5 votes vote down vote up
public synchronized Set<String> read(@NotNull DataInput in) throws IOException {
    THashSet set = new THashSet();

    for(int r = in.readInt(); r > 0; --r) {
        set.add(EnumeratorStringDescriptor.INSTANCE.read(in));
    }

    return set;
}
 
Example 4
public synchronized void save(@NotNull DataOutput out, Set<String> value) throws IOException {
    out.writeInt(value.size());
    Iterator var = value.iterator();

    while(var.hasNext()) {
        String s = (String)var.next();
        EnumeratorStringDescriptor.INSTANCE.save(out, s);
    }
}
 
Example 5
public synchronized Set<String> read(@NotNull DataInput in) throws IOException {
    Set<String> set = new THashSet<>();

    for(int r = in.readInt(); r > 0; --r) {
        set.add(EnumeratorStringDescriptor.INSTANCE.read(in));
    }

    return set;
}
 
Example 6
Source Project: idea-php-annotation-plugin   Source File: AnnotationUsageIndex.java    License: MIT License 5 votes vote down vote up
public synchronized void save(@NotNull DataOutput out, Set<String> value) throws IOException {
    out.writeInt(value.size());
    Iterator var = value.iterator();

    while(var.hasNext()) {
        String s = (String)var.next();
        EnumeratorStringDescriptor.INSTANCE.save(out, s);
    }
}
 
Example 7
Source Project: idea-php-annotation-plugin   Source File: AnnotationUsageIndex.java    License: MIT License 5 votes vote down vote up
public synchronized Set<String> read(@NotNull DataInput in) throws IOException {
    Set<String> set = new THashSet<>();

    for(int r = in.readInt(); r > 0; --r) {
        set.add(EnumeratorStringDescriptor.INSTANCE.read(in));
    }

    return set;
}
 
Example 8
Source Project: reasonml-idea-plugin   Source File: FileModuleIndex.java    License: MIT License 4 votes vote down vote up
@NotNull
@Override
public KeyDescriptor<String> getKeyDescriptor() {
    return EnumeratorStringDescriptor.INSTANCE;
}
 
Example 9
Source Project: reasonml-idea-plugin   Source File: NamespaceIndex.java    License: MIT License 4 votes vote down vote up
@NotNull
@Override
public KeyDescriptor<String> getKeyDescriptor() {
    return EnumeratorStringDescriptor.INSTANCE;
}
 
Example 10
Source Project: idea-php-typo3-plugin   Source File: ControllerActionIndex.java    License: MIT License 4 votes vote down vote up
@NotNull
@Override
public KeyDescriptor<String> getKeyDescriptor() {
    return new EnumeratorStringDescriptor();
}
 
Example 11
Source Project: idea-php-typo3-plugin   Source File: ResourcePathIndex.java    License: MIT License 4 votes vote down vote up
@NotNull
@Override
public KeyDescriptor<String> getKeyDescriptor() {
    return EnumeratorStringDescriptor.INSTANCE;
}
 
Example 12
Source Project: idea-php-typo3-plugin   Source File: RouteIndex.java    License: MIT License 4 votes vote down vote up
@NotNull
@Override
public KeyDescriptor<String> getKeyDescriptor() {
    return new EnumeratorStringDescriptor();
}
 
Example 13
Source Project: idea-php-typo3-plugin   Source File: TranslationIndex.java    License: MIT License 4 votes vote down vote up
@NotNull
@Override
public KeyDescriptor<String> getKeyDescriptor() {
    return EnumeratorStringDescriptor.INSTANCE;
}
 
Example 14
Source Project: idea-php-typo3-plugin   Source File: IconIndex.java    License: MIT License 4 votes vote down vote up
@NotNull
@Override
public KeyDescriptor<String> getKeyDescriptor() {
    return EnumeratorStringDescriptor.INSTANCE;
}
 
Example 15
Source Project: idea-php-typo3-plugin   Source File: TablenameFileIndex.java    License: MIT License 4 votes vote down vote up
@NotNull
@Override
public KeyDescriptor<String> getKeyDescriptor() {
    return EnumeratorStringDescriptor.INSTANCE;
}
 
Example 16
public synchronized void save(@NotNull DataOutput out, String value) throws IOException {
    EnumeratorStringDescriptor.INSTANCE.save(out, value);
}
 
Example 17
public synchronized String read(@NotNull DataInput in) throws IOException {
    return EnumeratorStringDescriptor.INSTANCE.read(in);
}
 
Example 18
Source Project: intellij-swagger   Source File: OpenApiFileIndex.java    License: MIT License 4 votes vote down vote up
@NotNull
@Override
public KeyDescriptor<String> getKeyDescriptor() {
  return EnumeratorStringDescriptor.INSTANCE;
}
 
Example 19
Source Project: intellij-swagger   Source File: SwaggerFileIndex.java    License: MIT License 4 votes vote down vote up
@NotNull
@Override
public KeyDescriptor<String> getKeyDescriptor() {
  return EnumeratorStringDescriptor.INSTANCE;
}
 
Example 20
@NotNull
@Override
public KeyDescriptor<String> getKeyDescriptor() {
    return new EnumeratorStringDescriptor();
}
 
Example 21
@NotNull
@Override
public KeyDescriptor<String> getKeyDescriptor() {
    return new EnumeratorStringDescriptor();
}
 
Example 22
Source Project: js-graphql-intellij-plugin   Source File: GraphQLInjectionIndex.java    License: MIT License 4 votes vote down vote up
@NotNull
@Override
public KeyDescriptor<String> getKeyDescriptor() {
    return EnumeratorStringDescriptor.INSTANCE;
}
 
Example 23
Source Project: idea-php-laravel-plugin   Source File: BladeSectionStubIndex.java    License: MIT License 4 votes vote down vote up
@NotNull
@Override
public KeyDescriptor<String> getKeyDescriptor() {
    return EnumeratorStringDescriptor.INSTANCE;
}
 
Example 24
Source Project: idea-php-laravel-plugin   Source File: TranslationKeyStubIndex.java    License: MIT License 4 votes vote down vote up
@NotNull
@Override
public KeyDescriptor<String> getKeyDescriptor() {
    return EnumeratorStringDescriptor.INSTANCE;
}
 
Example 25
Source Project: idea-php-laravel-plugin   Source File: BladeIncludeStubIndex.java    License: MIT License 4 votes vote down vote up
@NotNull
@Override
public KeyDescriptor<String> getKeyDescriptor() {
    return EnumeratorStringDescriptor.INSTANCE;
}
 
Example 26
@NotNull
@Override
public KeyDescriptor<String> getKeyDescriptor() {
    return EnumeratorStringDescriptor.INSTANCE;
}
 
Example 27
Source Project: idea-php-laravel-plugin   Source File: BladeExtendsStubIndex.java    License: MIT License 4 votes vote down vote up
@NotNull
@Override
public KeyDescriptor<String> getKeyDescriptor() {
    return EnumeratorStringDescriptor.INSTANCE;
}
 
Example 28
@NotNull
@Override
public KeyDescriptor<String> getKeyDescriptor() {
    return EnumeratorStringDescriptor.INSTANCE;
}
 
Example 29
Source Project: idea-php-laravel-plugin   Source File: BladeYieldStubIndex.java    License: MIT License 4 votes vote down vote up
@NotNull
@Override
public KeyDescriptor<String> getKeyDescriptor() {
    return EnumeratorStringDescriptor.INSTANCE;
}
 
Example 30
Source Project: idea-php-laravel-plugin   Source File: RouteIndexExtension.java    License: MIT License 4 votes vote down vote up
@NotNull
@Override
public KeyDescriptor<String> getKeyDescriptor() {
    return EnumeratorStringDescriptor.INSTANCE;
}