Can you make a Class T ?

I have a method
public <T> void delete(T deleteObject){
I from this information I need to derive a Class<T>. Is this posible? The reason is that I need to instanciate another class
public class Query<T> implements QueryInterface<T> {
with the constructor
public Query(Class<T> searchFor){
It is not possible to use deleteObject.getClass(), since it returns a Class<? extends Object>, which is not compatible with Class<T>.
Hope you can help!
Thanks up front!

So far, I have just accepted the type warning which comes when I use Class instead of Class<T>. But please reply if you have a surgestion to how to avoid this.

Similar Messages

  • How can you make one button preform different actions in Xcode?

    How can you make one button "preform a click" and "orderfront"? Is that possible? Because what I am doing is making a welcome window to my application for Mac OS X 10.6, and I have two buttons in that window, one says "Connect" which connects a a WebView to a url and the other button opens up the main window. So how can I a make a button do multiple things at once??

    Ah - If you are just using bindings between various objects from Interface Builder, you can reduce your application code a bit (sometimes quite a bit), but there is only so far you can go. Typically variables and routines are defined in your application that Interface Builder hooks into, so that your application code (usually Objective-C, but can be others) can use these variables and routines to determine what is happening in the user interface.
    I'm not sure how up-to-date the project code is (or what programming code you are familiar with), but you can take a look at Apple's Cocoa Application Tutorial to see what is (usually) involved in creating an application.

  • How can you make the iPod tell the diff between a movie and music video

    Greetings!
    How can you make iPod tell the difference between a Music Video and Movie? Everything I put up on the iPod falls into Movie. So is it something I have to do in iTunes?
    Thanks for the help!

    Rightclick the video in iTUnes, hit Get info then the "Options" tab. Beside kind you can set it to movie. music video. or TV show

  • Is there a way to view earlier messages in a thread without going through each day? Also, can you make a photo album from the same text thread without going back to the beginning?

    Is there a way to view earlier messages in a thread without going through each day? Also, can you make a photo album from the same text thread without going back to the beginning?

    Turn Settings > General > Accessibility > Zoom to ON.

  • Do you have to down load from the internet using apple's recover partition, every time you need to do a clean install? or can you make a copy of Mt Lion onto a USB stick and install off that?

    Do you have to down load Mountain Lion from the internet every time you need to do a clean install? or can you make a copy of Mt Lion onto a USB stick and install off that?
    Thanks

    Yes you can make a USB stick of Lion or Mt Lion. Use Lion Disk Maker after you download OS X from the internet.
    For Lion you have to point the download to an external drive and watch when it completes and reboots the system to start the install disconnect the external. If you bought Mt Lion from the Mac App Store then you can download it from there and just cancel the install when it comes up on the desktop.
    If you are downloading from the Recovery HD or from the Online Internet Recovery system, slightly different then the built in Recovery HD, then again you need to point it to an external drive and discoonect that drive when the system reboots to start the real install.
    Then use Lion disk maker to create either a DVD disc or USB thumb of the install files.

  • How can you make your persona show on the top and bottom? Also can you make it bigger at the top to show more of the picture?

    How can you make your persona show on the top and bottom?
    Also can you make it bigger at the top to show more of the picture?

    Add extra empty toolbars if you want to see more of the persona.<br />
    You can create extra toolbars to get extra space via View > Toolbars > Customize<br />
    You have to put something on a toolbar (drag a Space item onto it) before closing the Customize window because empty toolbars are automatically removed.<br />
    See http://kb.mozillazine.org/Toolbar_customization

  • Can you make an animated gif from edge animate?

    Can you make an animated gif from edge animate?

    not natively. edge exports html and javascript files, not video files, or frames.
    however, you could use a third-party program that has a video screenshot function and make one that way.

  • Can you make an existing document into a .pdf file?

    can you make an existing document into a .pdf file? I used to use pdf factory before my system recovery. I do not want to reinstall that program. Can I do this in Acrobat Reader 7?

    Adobe sell Acrobat (in various versions) to do this.
    Aandi Inston

  • Can you make captions for a slideshow?

    can you make captions for a slideshow? otherwise how can i rename the photo so that i can select view titles in the slideshow and use it as a caption?

    Jim lo:
    Welcome to the Apple Discussions. You can't make captions with iPhoto. You can edit the title of a photo by selecting it and then going to the Info window at the bottom of the Source pane, the "i" button, clicking on the title field and enter what text you'd like.
    If you plan on using the slideshow in iDVD then those titles will not show as they will be lost in the "overscan" area that is common to all movies played on TV. You can create the slideshow in iMovie and have lots of control over titles and subtitles and greater control of the audio track, cut, fade in/out, etc.
    Do you Twango?

  • I just bought a used Macbook Pro. How do I make the changes to make it personal. Example the iTunes comes up as the old user and I have to have his password to make changes on the laptop. Can you make any suggestions?

    I just bought a used Macbook Pro. How do I make the changes to make it personal. Example the iTunes comes up as the old user and I have to have his password to make changes on the laptop. Can you make any suggestions?
    Also I cant make a right click on the pad. Is that normal?

    Your first going to have to remove all your personal data off the machine to a external storage drive, do not use TimeMachine when it asks as this will copy the entire drive and is unnecessary at this time (also takes too long).
    You need to drag and drop copy your personal data folders (Music, Pictures, Movies etc) to a external storage drive, once done, unmount and disconnect this drive.
    Most commonly used backup methods
    Next your going to follow the Zero Erase and install method for your OS X version, either 10.6 or 10.7, here
    How to reinstall just OS X or erase/install OS X
    10.7 requires your AppleID and password to install, so make sure to have that ready.
    Once you reboot your into the real setup of OS X, which will require your name etc, so it's now your machine.
    Install your programs, iLife package is only free for the owner of the machine.
    If you have the 10.6 machine specific disks, then it's on there.
    If your using 10.7, then you'll have to purchase it from the App Store.
    Last, return your files from the storage drive, consider setting up a TimeMachine or clone on the external drive.

  • Can you make address labels in Pages?

    Can you make address labels in Pages?

    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=182&highlight=labels &mforum=iworktipsntrick
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=245&highlight=labels &mforum=iworktipsntrick
    Peter

  • Can you make a app for texting that dont need wifi for iPod touch

    Can you make a app for texting that dont need wifi for iPod touch

    I don't think that even possible without any kind of connection

  • Can you make a photo out of a video clip

    can you make a photo out of a video clip

    This method works for iMovie 11, iMovie 09, and iMovie 08. If you have a different version, let us know.
    Here are the details of the method that works for me.
    https://discussions.apple.com/docs/DOC-3231

  • HT204364 Can you make a puzzle from a photo or have the image printed on a cup as a gift or do I order this elsewhere? Thanks.

    Can you make a puzzle from a photo?  I'd like this.  Also, can you have a photo transposed on a cup?
    <Personal Information Edited by Host>

    Yes, there are websites that can do what you want.  You just have to do a Google search for what you want.
    OT

  • Can you make key photos on the iPad?

    Can you make key photos on the iPad?

    Michael Morgan1 wrote:
    That is the only way of doing it.
    When the OP updates to iOS 5, future updates can be performed in Settings > General > Software Update.

Maybe you are looking for

  • How can I lock the screen on RMBP allowing applications to work.

    I'm using my RMBP at work, when I go off to get lunch or any other time I'm out of my office for several minutes I want to be able to lock my screen.  I want downloads in the background, or renderings to keep working while it's locked, but the only t

  • Error when creating Restricted key figure

    Hi there, I created Restricted keyfig with Time diff and ABC as the  details of the selection If time diff is less than X  then it should display the values of a keyfigure(ABC),same time if the time diff is greater than x it should display the value

  • Why do email messages keep reappearing in my junk folder?

    These messages all have the same date:   Nov. 26, 2011.  Only one will appear in any given instance and it's usually not the same one twice.  I have my junk filter set to catch anything that is not from someone in my address book.  Anyone? Peter

  • Wifi slow on macbook air

    Hi all, I bought a new macbook air less than 3 months ago and theres something wrong with the wifi. I brought it to the mac store and they ran a diagnostics they found nothing wrong with the wifi but one of the tech guys found a problem with safari a

  • ITunes Recognizing iPod Shuffle As iPod

    My wife has a iPod Nano that has synced without problems with iTunes. She recently purchased me a iPod Shuffle which had difficulty syncing with iTunes, but did eventually sync. After a few weeks, iTunes would not recognize it any longer and kept pro