test_class.declarator: variantListBuilder
test_class.modifier: private
test_class.original_string: private VariantListBuilderImpl variantListBuilder;
test_class.type: VariantListBuilderImpl
test_class.var_name: variantListBuilder
test_class.file: everrest-core/src/test/java/org/everrest/core/impl/VariantListBuilderImplTest.java
test_class.identifier: VariantListBuilderImplTest
test_case.body: @Test(expected = IllegalStateException.class)
      public void throwsExceptionOnAddIfNotAtLeastOneMediaTypeLanguageOrEncodingSet() {
          variantListBuilder.add();
      }
test_case.class_method_signature: VariantListBuilderImplTest.throwsExceptionOnAddIfNotAtLeastOneMediaTypeLanguageOrEncodingSet()
test_case.full_signature: @Test(expected = IllegalStateException.class) public void throwsExceptionOnAddIfNotAtLeastOneMediaTypeLanguageOrEncodingSet()
test_case.identifier: throwsExceptionOnAddIfNotAtLeastOneMediaTypeLanguageOrEncodingSet
test_case.invocations: add
test_case.modifiers: @Test(expected = IllegalStateException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void throwsExceptionOnAddIfNotAtLeastOneMediaTypeLanguageOrEncodingSet()
focal_class.declarator: languages
focal_class.modifier: private final
focal_class.original_string: private final List<Locale> languages;
focal_class.type: List<Locale>
focal_class.var_name: languages
focal_class.declarator: encodings
focal_class.modifier: private final
focal_class.original_string: private final List<String> encodings;
focal_class.type: List<String>
focal_class.var_name: encodings
focal_class.declarator: mediaTypes
focal_class.modifier: private final
focal_class.original_string: private final List<MediaType> mediaTypes;
focal_class.type: List<MediaType>
focal_class.var_name: mediaTypes
focal_class.declarator: variants
focal_class.modifier: private
focal_class.original_string: private List<Variant> variants;
focal_class.type: List<Variant>
focal_class.var_name: variants
focal_class.file: everrest-core/src/main/java/org/everrest/core/impl/VariantListBuilderImpl.java
focal_class.identifier: VariantListBuilderImpl
focal_class.class_method_signature: VariantListBuilderImpl.VariantListBuilderImpl()
focal_class.full_signature: public  VariantListBuilderImpl()
focal_class.identifier: VariantListBuilderImpl
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  VariantListBuilderImpl()
focal_class.class_method_signature: VariantListBuilderImpl.add()
focal_class.full_signature: @Override public VariantListBuilder add()
focal_class.identifier: add
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: VariantListBuilder
focal_class.signature: VariantListBuilder add()
focal_class.class_method_signature: VariantListBuilderImpl.build()
focal_class.full_signature: @Override public List<Variant> build()
focal_class.identifier: build
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<Variant>
focal_class.signature: List<Variant> build()
focal_class.class_method_signature: VariantListBuilderImpl.encodings(String... encodings)
focal_class.full_signature: @Override public VariantListBuilder encodings(String... encodings)
focal_class.identifier: encodings
focal_class.modifiers: @Override public
focal_class.parameters: (String... encodings)
focal_class.return: VariantListBuilder
focal_class.signature: VariantListBuilder encodings(String... encodings)
focal_class.class_method_signature: VariantListBuilderImpl.languages(Locale... languages)
focal_class.full_signature: @Override public VariantListBuilder languages(Locale... languages)
focal_class.identifier: languages
focal_class.modifiers: @Override public
focal_class.parameters: (Locale... languages)
focal_class.return: VariantListBuilder
focal_class.signature: VariantListBuilder languages(Locale... languages)
focal_class.class_method_signature: VariantListBuilderImpl.mediaTypes(MediaType... mediaTypes)
focal_class.full_signature: @Override public VariantListBuilder mediaTypes(MediaType... mediaTypes)
focal_class.identifier: mediaTypes
focal_class.modifiers: @Override public
focal_class.parameters: (MediaType... mediaTypes)
focal_class.return: VariantListBuilder
focal_class.signature: VariantListBuilder mediaTypes(MediaType... mediaTypes)
focal_class.class_method_signature: VariantListBuilderImpl.clearAll()
focal_class.full_signature: private void clearAll()
focal_class.identifier: clearAll
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clearAll()
focal_class.superclass: extends VariantListBuilder
focal_method.body: @Override
      public VariantListBuilder add() {
          checkState(!(mediaTypes.isEmpty() && languages.isEmpty() && encodings.isEmpty()),
                     "At least one media type, language or encoding must be set");
  
          if (variants == null) {
              variants = new ArrayList<>();
          }
  
          Iterator<MediaType> mediaTypesIterator = mediaTypes.iterator();
          do {
              MediaType mediaType = mediaTypesIterator.hasNext() ? mediaTypesIterator.next() : null;
              Iterator<Locale> languagesIterator = languages.iterator();
              do {
                  Locale language = languagesIterator.hasNext() ? languagesIterator.next() : null;
                  Iterator<String> encodingsIterator = encodings.iterator();
                  do {
                      String encoding = encodingsIterator.hasNext() ? encodingsIterator.next() : null;
                      variants.add(new Variant(mediaType, language, encoding));
                  } while (encodingsIterator.hasNext());
              } while (languagesIterator.hasNext());
          } while (mediaTypesIterator.hasNext());
  
          clearAll();
          return this;
      }
focal_method.class_method_signature: VariantListBuilderImpl.add()
focal_method.full_signature: @Override public VariantListBuilder add()
focal_method.identifier: add
focal_method.invocations: checkState isEmpty isEmpty isEmpty iterator hasNext next iterator hasNext next iterator hasNext next add hasNext hasNext hasNext clearAll
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: VariantListBuilder
focal_method.signature: VariantListBuilder add()