Add() public method

or this element into this set (grow as necessary to accommodate)
public Add ( int el ) : void
el int
return void
Beispiel #1
0
        public static BitSet Of(int a, int b)
        {
            BitSet bitSet = new BitSet(Math.Max(a, b) + 1);

            bitSet.Add(a);
            bitSet.Add(b);
            return(bitSet);
        }
Beispiel #2
0
        public static BitSet Of(int a, int b)
        {
            BitSet s = new BitSet(Math.Max(a, b) + 1);

            s.Add(a);
            s.Add(b);
            return(s);
        }
Beispiel #3
0
        public static BitSet Of(int a, int b, int c)
        {
            BitSet s = new BitSet();

            s.Add(a);
            s.Add(b);
            s.Add(c);
            return(s);
        }
Beispiel #4
0
        public static BitSet Of(int a, int b, int c)
        {
            BitSet bitSet = new BitSet();

            bitSet.Add(a);
            bitSet.Add(b);
            bitSet.Add(c);
            return(bitSet);
        }
Beispiel #5
0
        public static BitSet Of(int el)
        {
            BitSet s = new BitSet(el + 1);

            s.Add(el);
            return(s);
        }
Beispiel #6
0
        public static BitSet Of(int el)
        {
            BitSet bitSet = new BitSet(el + 1);

            bitSet.Add(el);
            return(bitSet);
        }
Beispiel #7
0
 public static BitSet Of( int el )
 {
     BitSet s = new BitSet( el + 1 );
     s.Add( el );
     return s;
 }
Beispiel #8
0
 public static BitSet Of( int a, int b, int c, int d )
 {
     BitSet s = new BitSet();
     s.Add( a );
     s.Add( b );
     s.Add( c );
     s.Add( d );
     return s;
 }
Beispiel #9
0
 public static BitSet Of( int a, int b )
 {
     BitSet s = new BitSet( Math.Max( a, b ) + 1 );
     s.Add( a );
     s.Add( b );
     return s;
 }
 public static BitSet Of(int a, int b, int c)
 {
     BitSet set = new BitSet();
     set.Add(a);
     set.Add(b);
     set.Add(c);
     return set;
 }
 public static BitSet Of(int el)
 {
     BitSet set = new BitSet(el + 1);
     set.Add(el);
     return set;
 }