Examples of clone()


Examples of javax.management.Descriptor.clone()

           
            if ((mbeandescriptor != null) && isValidDescriptor(mbeandescriptor)) {
                if (tracing()) trace("ModelMBeanInfo(ModelMBeanInfo)",
                        "ModelMBeanDescriptor is valid, cloning Descriptor *" +
                        mbeandescriptor.toString() + "*");
                modelMBeanDescriptor = (Descriptor) mbeandescriptor.clone();
                addDefaultFields();
            } else {
                if (tracing()) trace("ModelMBeanInfo(ModelMBeanInfo)",
                        "ModelMBeanDescriptor in ModelMBeanInfo " +
                        "is null or invalid, setting to default value");
View Full Code Here

Examples of javax.management.MBeanNotificationInfo.clone()

        MBeanNotificationInfo[] result =
                new MBeanNotificationInfo[mbn.length];
        for (int i = 0; i < mbn.length; i++) {
            MBeanNotificationInfo ni = mbn[i];
            if (ni.getClass() != MBeanNotificationInfo.class)
                ni = (MBeanNotificationInfo) ni.clone();
            result[i] = ni;
        }
        return result;
    }
View Full Code Here

Examples of javax.management.modelmbean.DescriptorSupport.clone()

      try
      {
         DescriptorSupport d = new DescriptorSupport();
         d.setField("foo", "bar");
        
         Descriptor clone = (Descriptor)d.clone();
         assertTrue(clone.getFieldValue("foo").equals("bar"));
      }
      catch (AssertionFailedError e)
      {
         throw e;
View Full Code Here

Examples of javax.management.modelmbean.ModelMBeanInfoSupport.clone()

            new ModelMBeanConstructorInfo[]  { constr1, constr2, constr3 },
            new ModelMBeanOperationInfo[]    { operation },
            null
      );

      ModelMBeanInfo clone = (ModelMBeanInfo)info.clone();     
     
      assertTrue(clone.getDescriptors(null).length == info.getDescriptors(null).length);
     
      // FIXME: equality not implemented to match field, value pairs
      //assertTrue(clone.getDescriptor("FirstConstructor", "constructor")
View Full Code Here

Examples of javax.media.Buffer.clone()

      try
      {
        // put a clone of the buffer in each stream's buffer queue
        for (ClonedDataSource.ClonedPushBufferStream clonedStream : clonedStreams)
        {
          clonedStream.getBufferQueue().put(originalBuffer.clone());
         
        }
       
        // notify their transfer handlers asynchronously:
        for (ClonedDataSource.ClonedPushBufferStream clonedStream : clonedStreams)
View Full Code Here

Examples of javax.media.Format.clone()

   
    // equal and match:
    {
      final Format[] f2s = new Format[]{
          new Format("abc", Format.byteArray),
            (Format) f1.clone(),
            (Format) f1.intersects(f1)
      };
      for (int i = 0; i < f2s.length; ++i)
      {
        Format f2 = f2s[i];
View Full Code Here

Examples of javax.media.format.AudioFormat.clone()

    // AudioFormat - equal and match:
    {
      final AudioFormat[] f2s = new AudioFormat[]{
          new AudioFormat(AudioFormat.DOLBYAC3, 2.0, 1, 2, 3, 4, 5, 6.0, Format.byteArray),
            (AudioFormat) f1.clone(),
            (AudioFormat) f1.intersects(f1)
      };
      for (int i = 0; i < f2s.length; ++i)
      {
        AudioFormat f2 = f2s[i];
View Full Code Here

Examples of javax.media.format.H261Format.clone()

    // H261Format - equal and match:
    {
      final H261Format[] f2s = new H261Format[]{
          new H261Format(new Dimension(1, 1), 2000, Format.byteArray, 3.f, 1),
            (H261Format) f1.clone(),
            (H261Format) f1.intersects(f1)
      };
      for (int i = 0; i < f2s.length; ++i)
      {
        H261Format f2 = f2s[i];
View Full Code Here

Examples of javax.media.format.H263Format.clone()

    // equal and match:
    {
      final H263Format[] f2s = new H263Format[]{
          new H263Format(new Dimension(1, 1), 2000, Format.shortArray, 2.f, 1, 2, 3, 4, 5, 6),
            (H263Format) f1.clone(),
            (H263Format) f1.intersects(f1)
      };
      for (int i = 0; i < f2s.length; ++i)
      {
        H263Format f2 = f2s[i];
View Full Code Here

Examples of javax.media.format.IndexedColorFormat.clone()

    // IndexedColorFormat - equal and match:
    {
      final IndexedColorFormat[] f2s = new IndexedColorFormat[]{
          new IndexedColorFormat(new Dimension(1, 1), 2000, Format.byteArray, 3.f, 1, 2, arr1, arr2, arr3),
            (IndexedColorFormat) f1.clone(),
            (IndexedColorFormat) f1.intersects(f1)
      };
      for (int i = 0; i < f2s.length; ++i)
      {
        IndexedColorFormat f2 = f2s[i];
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.