Two Interface implementation with different signatures

Hallo,
I'm searching a solution for the following problem:
I have an Interface which has to have the following methods names:
deleteObject()
moveObject()
and besides that I must have to classes which implements this interface, but because of the nature of the programm these classes have the following signatures:
class 1.
public static boolean deleteObject(File objectToDelete)
public static boolean moveObject(File srcObjectPath, File dstObjectPath, SVNRevision revision, boolean isRename)
class 2.
public void moveObject(Folder rFolder, FSObject rFSObject)
public void deleteObject(FSObject rFSObject) but unfortunately I cant see how to solve this problem, bearing in mind that that the signatures of the methods of the second class cant be manipulated, the signatures of the first one are flexible?
Thanks in advance
Christian Rosenfeld

well, the story is like that: I have finished my master thesis which includes programming. This thesis contributes to an already existing big project.
The original implementation of the integrated file browser has the follwoing methods:
public void moveObject(Folder rFolder, FSObject rFSObject)
public void deleteObject(FSObject rFSObject)My implementation which is a total new implementation of the file browser, which also has version control, must have same named methds (deleteObject, moveObject). Now because of the nature of the programm that I have implemented, these methods have the following signatures:
public static boolean deleteObject(File objectToDelete)
public static boolean moveObject(File srcObjectPath, File dstObjectPath, SVNRevision revision, boolean isRename)Now for some reason that I dont really understand, the subervisor is asking about an interface which will allow him to choose between the two implementations, like:
interface FileOperations{
      moveObject(...);
      deleteObject(...);
}but what shall the signatures of the interface be? supposing that the signatures of my methods can be manipulated, ist possible to find a suitable interface?
Christian
Edited by: ChristianRosenfeld on Sep 22, 2008 1:57 AM

Similar Messages

  • HT1491 I have two itunes accounts with different Apple ID's.  How can I merge them into one?

    I ahve two itunes accounts with different Apple ID's.  How can I merge them into one account?

    Apple has no provisions for this. You cannot merge multiple Apple ID's into one ID. Content is always tied to the Apple ID that was used to purchase it.

  • Merge of two same items with different Qty in po

    Hi Experts,
    Is it possible to merge two Same items with different Quantity into 1.
    For Eg:- 2 similar  items  with qty 2 & 3 must show 5 qty appearing once.Is it possible through Transnotification what should be the query.
    Mona

    Hi Mona,
    If you want to display a Purchase Order on screen summarized by item, set the "Summary Type"  to "By Item" (by default it is "No Summary"). The PO lines will then be summarized by item with total quantity for each item.
    If you want to display it on the printout then you need to modify the PLD. It is quite easy actually. You can use the Repetitive Area Footer to display the summary of each item and set all fields in the Repetitive Area to be not visible and set the height to minimum height.
    Cheers,
    Marini

  • Joining two fact tables with different dimensions into single logical table

    Hi Gurus,
    I try to accomplish in Oracle Business Intelligence 11.1.1.3.0:
    F1 (D1, D2 and D3)
    F2 (D1 and D2 and D4)
    And we want to build a report F1 F2 D1 D2 D3 D4 to have data for:
    F1 that match only for D1-D2-D3
    and data for
    F2 that match only D1-D2-D4
    all that in one row, so D3 and D4 are not common dimensions.
    I can only do:
    F3 (D1, D2)
    F4 (D1, D2 and D4)
    And report
    F3 F4 D1,D2,D4 (all that in one row, and only D4 is not a common dimension)
    Here is the very good example how to accomplish the scenario 1
    http://108obiee.blogspot.com/2009/08/joining-two-fact-tables-with-different.html
    But looks like it does not work in 11.1.1.3.0
    I get
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 14025] No fact table exists at the requested level of detail: [,,Clients,,Day,ROI,,,,EW_Names,,,,,,,,,,,,,,,,,]. (HY000)
    I am sure I set up everything correctly as advised in the blog but it works with only one not a common dimension
    Is it a bug in 11.1.1.3.0 or something?
    Thanks,
    Kate

    Thanks for all your replies.
    Actually, I've tried the solutions you guys mentioned. Generally speaking, the result should be displayed. However, my scenario is a little bit tricky.
    table Y's figures are not the aggregation of table X for D dimension. Instead, table Y's figures include not only D dimension total, but also others (others do not mean A, B, C dimension). For example, table Y stores all food's figure, while table X stores only drink's figure. D dimension is only about drink's detail. In my scenario, other foods' figure is not provided.
    So, even if I set D dimension to all/total for table X, table X's result is still not the same as table Y.
    Indeed, table Y does not have a column key to join to D dimension's key. So, if I select D dimension and table Y's measures at the same time in BI Answer, result returns no data. Hence, I can't compare table X and table Y's results with selection of D dimension.
    Is there any solution to solve this problem?
    Edited by: TomChan on Jun 3, 2009 9:36 AM

  • Performance between two partitionned tables with different structure

    Hi,
    I would like if there is a difference between two partitionned tables with different structure in term of performance (access, query, insertions, updates ).
    I explain myself in detail :
    I have a table that stores one value every 10 minutes in a day (so we have 144 values (24*6) in the whole day), with the corresponding id.
    Here is the structure :
    | Table T1 |
    + id PK |
    + date PK |
    + sample1 |
    + sample2 |
    + ... |
    + sample144 |
    The table is partionned on the column date, with a partionned every months. The primary key is based on the columns (id, date).
    There is an additionnal index on the column (id) (is it useful ?).
    I would like to know if it is better to have a table with just (id, date, value) , so for one row in the first table we'll have 144 rows in the future? table. The partition will already be on the columns (id, date) with the index associated.
    What are the gains or loss in performance with this new structure ( access, DMLs , storage ) ?
    I discuss with the Java developers and they say it is simpler to manage in their code.
    Oracle version : Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    Thanks & Regards
    From France
    Oliver
    Edited by: 998239 on 5 avr. 2013 01:59

    I mean storage in tablespaces and datafiles on disk.
    Can you justify please and give me concrete arguments why the two structures are equivalent ( except inserting data in T(id, date,value))
    because i have to make a report.i didnt say any thing like
    two structures are equivalent ( except inserting data in T(id, date,value)i said
    About structure : TABLE1(id, date, value) is better than TABLE1(id, date, sample1, .... sample144)because
    1) oracle has restriction for numbers of column. Ok you can have 144 columns now but for future if you must have more than 1000 columns , what will you do?
    2) Restrictions on Table Compression (Table compression is not supported for tables with more than 255 columns.)
    3) store same type values on diffrent columns is bad practise
    http://docs.oracle.com/cd/B28359_01/server.111/b28318/schema.htm#i4383
    i remember i seen Toms article about this but now i cant find it sorry ((( if i found i will post here

  • How to do consolidation using two chart accounts with different currencies

    Hi
    How to do consolidation using two chart accounts with different currencies and do we need to use same fiscal year variant ?
    What would be the impossible factors when we use two company codes with two chart of accounts ...
    Regards
    Kesharika

    Good Afternoon
    You need to use translationa and/or valuation
    translation takes account in foreign currency and translates to group currency
    valuation takes account in currency 1 and restates into currency 2 for a company with currency 2
    so depends on which company you are consolidating for, a company in a foreign currency in that currency or consolidating a compnay in foreign currency to parent company in another currency

  • How can i compare two excel files with different no. of records.

    Hi
    I am on to a small project that involves us to compare two excel files. i am able to do it but am struck up at a point. When i compare 2 different .csv files with different no. of lines i am only able to compare upto a point till when the number of lines is same in both the files.
    Eg. if source file has 8 lines and target file has 12 lines. The difference is displayed only till 8 lines and the remaining 4 lines in source lines are not shown.
    Can you help me in displaying those extra 4 lines in source file. I am attaching my code snippet below..
    while (((strLine = br.readLine()) != null) && ((strLine1 = br1.readLine())) != null)
                     String delims = "[;,\t,,,|]";
                    String[] tokens = strLine.split(delims);
                    String[] tokens1 = strLine1.split(delims);
                   if (tokens.length > tokens1.length)
                    for (int i = 0; i < tokens.length; i++) {
                        try {
                            if (!tokens.equals(tokens1[i])) {
    System.out.println(tokens[i] + "<----->" + tokens1[i]);
    out.write(sno + " \t" + lineNo1 + " \t\t" + tokens[i] + "\t\t\t\t" + tokens1[i]);
    out.println();
    sno++;
    } catch (Exception exception)
    out.write(sno + " \t" + lineNo1 + " \t\t" + tokens[i] + "\t\t\t\t" + "");
    out.println();
    Thanks & Regards                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    A CSV file is not an Excel file.
    But apart from that your logic makes no sense.
    If the 2 files are of different sizes the files are different by definition, so further comparison isn't needed, you're done.
    If you want to compare individual records, you need to compare all records from one file with all records from the other, unless the order of records is important in which case your current system might work.
    That system however is overly complicated for comparing CSV files.
    As you assume a single record per line, and if one can assume those records to have identical layout (so no leading or trailing whitespace in or between columns in one file that's not in the other) comparing records is simply a matter of comparing the entire lines.

  • Two Fact tables with Different set of Dimension Tables

    Here is my scenario:
    I got two fact tables: X and Y (actually, they are the same tables, but with different level of data)
    and four dimension tables: A, B, C, D
    X joins relationship to all dimensions (A, B, C, D).
    Y joins relationship to only A, B, C, but no D.
    When I select dimension A, B and C together with fact tables X and Y in BI Answer, result is displayed and compared.
    However, if I select dimension D together with fact tables X and Y, only data from fact table X is displayed. There is no result displayed for fact table Y. I know that this is because fact table Y does not join to dimension D.
    If the above relationship unchanged, how can I display both X and Y's result in BI Answer when dimension D is selected?

    Thanks for all your replies.
    Actually, I've tried the solutions you guys mentioned. Generally speaking, the result should be displayed. However, my scenario is a little bit tricky.
    table Y's figures are not the aggregation of table X for D dimension. Instead, table Y's figures include not only D dimension total, but also others (others do not mean A, B, C dimension). For example, table Y stores all food's figure, while table X stores only drink's figure. D dimension is only about drink's detail. In my scenario, other foods' figure is not provided.
    So, even if I set D dimension to all/total for table X, table X's result is still not the same as table Y.
    Indeed, table Y does not have a column key to join to D dimension's key. So, if I select D dimension and table Y's measures at the same time in BI Answer, result returns no data. Hence, I can't compare table X and table Y's results with selection of D dimension.
    Is there any solution to solve this problem?
    Edited by: TomChan on Jun 3, 2009 9:36 AM

  • Why connect two dhcp servers with different IP addresses?

    
    so for an assignment at college we had to configure a router connected to two switches which both had a server connected to them.
    the computers were connected via dhcp to either server however each side had a different IP. we have now been asked to justify as to why two servers were used with different IP which I cannot quite produce a business orientated answer.
    I can understand connecting two dchp servers on same IP to increase fault tolerance but I do not understand using two separate IP addresses.

    Hi,
    Does “using two separate IP addresses“ mean 2 subnets which are connected by router?
    If you have separately configured 2 DHCP servers on the 2 subnets, and want 1 of the 2 DHCP servers to provide fault tolerance for the other. You need to use an RFC 1542–compliant router, or DHCP relay agent, in order to forward DHCP broadcast traffic.
    If there is any misunderstanding about your question, please correct. 
    Best Regards,           
    Eve Wang                                                                             
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Unable to use two af:tables with differing coloring (skins)?

    Im trying to configure the Siebel Self-Services application and customize the skinning. I have some problems though, because i need to show two af:tables on the same page, but with different coloring. One with black background and white text (both header and body) and one with white background and black text. I have tried to use styleClass:es, but the css parameters set for the af table are overriding the ones set in the stylesheets.
    Anyone having an idea how to overcome this?
    Thanks
    /Jon-Erik

    Hi,
    if the styleClass name is table1 then the skin selector would be something like
    .table1 af|table
    or .afTable.af|table
    I don't see how this can be overriden. If you assumption is that the style class reference must be to a CSS definition on the page then this indeed does not work. The styleClass name is kind of a named identifier for the component to skin and is used to further qualify the component to skin
    Frank

  • BRFplus: Functions with different Signatures for Decision Table

    Hi all,
    I am new to BRFplus and attempting to do some prototyping with it.
    I have created a Decision Table which defines valid combinations of width and thickness for a product.  The product id, width and thickness are the query columns; the results column is a boolean value that indicates if the combination is valid.
    I have successfuly created a Function that given product id, width and thickness returns whether the combination is valid.
    I now want to create another Function that given product id and width only (but not thickness) refers to the same Decision Table and returns whether the product id and width combination is valid.
    Is this possible ?  If so, how do I go about it ??
    I tried creating a new Function with this signature but I just get an error "Assigned expression uses Element WIDTH/Width which is not in the context ".
    Any comments or suggestions appreciated.
    Thanks,
    Grogan

    Hi, Grogan
    When you're talking about a Functio  you men a BRF+ function, don`t you?
    So, if you go to this function there is a tab called "Signature" , the second one....
    Have you tried to add your Element WIDTH to the Function signature and test again ?  
    May be the long text of the error message could help you as well.....
    Kind regards

  • Two Related APPs with different session?

    Hi all!
    I have two apps (in a different workspace) linked by a tab. And whenever i switch between them, apex assigns a new session id.
    The url given by me to the tab includes the &SESSION.
    Is there any way to maintain the session??
    Thanks!!!

    No, see cookies and sessions
    Scott

  • Lync Implementation with different internal and external domain sync

    Hello Experts,
    Having Windows 2012r2 with Lync 2013 frontend and Edge 2012 server on Win2012. Internal domain name is test.local and Internet domain name is : tgroup.com. Internally all the clients are able to sync with frontend
    server using [email protected] or [email protected] Internal CA and External Digicert works fine. But only problem is with external clients who want to communicate through edge server. 
    Edge server has 3 LAN ip address (nat with public IP), 10.10.10.2, 10.10.10.3, 10.10.10.4 and another Internal network interface which has ip 10.10.20.3
    which uses that to communicate with front-end. 
    How to achieve this ?  We dont have reverse proxy configured and we have only two servers. 
    Regards, Ganesh, MCTS, MCP, ITILV2 This posting is provided with no warranties and confers no rights. Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread.

    The reverse proxy is used to publish URL's like the meet and dialin url, the address book url and the lync mobile client (smart phones and tablets) urls. This doesn't impact the external desktop user access as thats via the edge server. There is more to
    it than that but for the sake of keeping this simple lets stick to that for now.
    As far as SIP domains go. Think of your Lync users as having a SIP address similar to email addresses. You wouldn't have a user with an internal email address but with a different external email address. In fact best practice is to have the Lync SIP address
    match the email address.
    My reccomendation is to use the ttgoup.com as a sip domain and not the test.local
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
    Lync Sorted blog

  • Two "From"-Addresses with different domains

    Hi Forum,
    what is your best practice to setup two available sender-addresses for one Account?
    My first thought was to create a new PO with a new domain.
    Then I can setup all users which are already existing in the first PO.
    After that I give every user proxy rights to its corresponding user in the second PO.
    Now every User can click on the "From"-field an choose the other address.
    For sure they also have to choose the correct signature!
    IMHO that should work?!
    Any other suggestions would be appreciated :)
    Cheers,
    Pascal

    Uwe,
    that's correct. and if I remember correct, you have to create the second domain via c1 and allocate it to an account.
    After that the account will use the second email address/domain as sender address. Unfortunately the user can't switch on demand between two addresses as you need c1 with appropriate rights...
    You second solution would be one way to make the user able to switch easy and fast between two sender addresses without the need for a second licence.
    However I have to add an pop3/imap account to be able to set up a smtp account.
    (Besides: as a default you can only add such accounts ins the caching mode and I don't know if this settings are persistent if you move a user to a different workstation or something else)
    No offence but that seems more like a workaround than a feature to me ;)
    I was hoping novel offers a easy/better way to use a second sender address... maybe I expected too much :)
    I guess in that case your second solution would be the best way...
    Wonder how other mail clients would handle such demands....
    Anyway, thanks!
    Pascal

  • Need to setup Premiere CS6 sequence for two file types with different field orders

    I have a client who has shot video for me using two cameras, one camera was set to progressive, and the other to interlaced upper field first. I need to use both file types in the edit and have been struggling to set up the sequence to get the best look for the end product, a DVD. I have several videos to do for her that were all shot in the same way, so I need a solution!
    I would appreciate help figuring out how to set up this work flow from beginning to end.
    Should I convert one of the files from the beginning so they match field orders before going into a sequence? Or do I just need to do some adjusting of the files once they are in the sequence? Is it just as simple as changing the transcode settings to favor the upper field first? I'm definitely having issues once the video is transcoded in Encore and you can see a lot of jagged edges and lines especially during movement. My client isn't happy and I've tried several workarounds, but to no avail.
    Here are the two file types I have:
    File extension: .MOV
    H.264, 1920x1080, Linear PCM, 16 bit little-endian signed integer, 48000 Hz, stereo
    FPS 29.97
    No Fields: Progressive Scan
    File extension: .MTS (my Mac finder can't read these files, but they are read in Premiere)
    Image Size: 1920 x 1080
    Frame Rate: 29.97
    Source Audio Format: 48000 Hz - compressed - 6 channels
    Pixel Aspect Ratio: 1.0
    Upper Field First
    I am using Adobe Premiere CS 6.0.2
    Encore 6.0.1
    Media Encoder 6.0.2.81
    I am running it on an iMac 27-inch, Mid 2011
    with Mac OS X Lion 10.7.5
    Processor  3.4 GHz Intel Core i7
    Graphics  AMD Radeon HD 6970M 1024 MB
    I've just been setting the sequence to match the .MOV files since they look much better than the .MTS files. I've done the opposite as well, setting the sequence to match the .MTS files and it doesn't seem to help. I've also changed the field order of the files once they are in the sequence by changing the field options and have tried converting the .MTS files in the Media Encoder, but nothing I've done has worked.
    Any help would be so appreciated! The client I have is a photographer, so she wasn't aware of this issue when she first shot these videos. So I have 10 videos with these issues I need to get back to her, hopefully issue free! I'm struggling as an editor because my last job I was using FCP and was working with videographers who knew what they were doing, so I've never faced such problems before. Plus I'm new to the Adobe software. Not a good combination. Please forgive me if I didn't give all the information you need. I will happily respond with whatever more information you may need to help me out!
    ~KTrouper

    I wonder if you could do your edit ignoring any visual issues of the interlaced footage but keeping the different sources separate ( checkerboard edit Vid 1/ Vid 2 )
    Lock it down then export the interlaced part of the edit as a Digital Intermediate.
    Maybe Export the other source as well to the same codec. DI
    Bring them back together in a New Sequence. You wold have to deal with the black spacing.

Maybe you are looking for

  • My ihpone 4 wont turn on goes straight to itunes screen

    i recently tried to update my iphone 4 and it told me i have restore my iphone in order to update.I put my iphone in recovery mode and connected to itunes now i cant get out of itunes. everytime i turn my phone on it goes staright to the itunes scree

  • How to attach a pdf file to a message posted on this forum

    Hello All, I'm trying to attach a pdf file to a message that I'm going to post. I don't a way to do, although I see that I can attach image files. Is there a way to attach a pdf file or this is not allow on this forum?

  • CCD+ Limitations

    Is anyone sending ACH payments in CCD+ format? If so, how are you controlling the 80 character description limit? Thanks for any input, Jennifer

  • How to determine is a java app is running in development mode

    i am stumped with this problem. i am developeing a app in eclipse, and there is a update feature that i do not want to run when i am running the app from eclipse. now when i was developing in visual studio there was a property which i could use to de

  • Unable to add Dimension thru Javascript

    I am connected to an Essbase cube thru IR. I am trying to change the selected Toplabels and Sidelabels thru Javascript. I have a dimension called FY_Period. The structure of FY_period is FY_Period -----Q1 ---------Jan ---------Feb ---------Mar -----Q