@Test public void add_remove_check_invalid_parameters() throws Exception { try { m_list.add(null); fail(); } catch (IllegalArgumentException e) { } try { m_list.add(m_scope.bool().make(true)); fail(); } catch (IllegalArgumentException e) { } try { m_list.remove(-1); fail(); } catch (IllegalArgumentException e) { } try { m_list.remove(1); fail(); } catch (IllegalArgumentException e) { } try { m_list.get(-1); fail(); } catch (IllegalArgumentException e) { } try { m_list.get(0); fail(); } catch (IllegalArgumentException e) { } try { m_list.contains(null); fail(); } catch (IllegalArgumentException e) { } try { m_list.contains(m_scope.bool().make(true)); fail(); } catch (IllegalArgumentException e) { } try { m_list.index_of(null); fail(); } catch (IllegalArgumentException e) { } try { m_list.index_of(m_scope.bool().make(true)); fail(); } catch (IllegalArgumentException e) { } }
@Override public ListDataValue make() { return new ListDataValue(this); }
ListDataType extends CollectionDataType { @Override public ListDataValue make() { return new ListDataValue(this); } }
ListDataType extends CollectionDataType { @Override public ListDataValue make() { return new ListDataValue(this); } ListDataType(DataType inner_type, AnyType any); }
ListDataType extends CollectionDataType { @Override public ListDataValue make() { return new ListDataValue(this); } ListDataType(DataType inner_type, AnyType any); static final String build_list_name(DataType inner); static ListDataType list_of(DataType inner, PrimitiveScope pscope); @Override ListDataValue make(); @Override boolean is_abstract(); }
ListDataType extends CollectionDataType { @Override public ListDataValue make() { return new ListDataValue(this); } ListDataType(DataType inner_type, AnyType any); static final String build_list_name(DataType inner); static ListDataType list_of(DataType inner, PrimitiveScope pscope); @Override ListDataValue make(); @Override boolean is_abstract();  }