/** * Two BitRates are equal when they have the same quantity and the same unit. * * @see #compareTo */ @Override public boolean equals(Object O) { if(!(O instanceof BitRate)) return false; BitRate other = (BitRate)O; return quantity==other.quantity && ObjectUtils.equals(unit, other.unit); }
@Override public ServletOutputStream getOutputStream() { throw new NotImplementedException(); } },
/** * Checks an argument and throws an exception if null. */ public static <T> T checkNotNull(T argument, String argumentName) throws NullArgumentException { if(argument==null) throw new NullArgumentException(argumentName); return argument; }
@Override public void writeTo(Encoder encoder, Writer out, long off, long len) throws IOException { // Implementation will need to start through beginning throw new NotImplementedException("Implement when first needed."); }
/** * Two BitRates are equal when they have the same quantity and the same unit. * * @see #compareTo */ @Override public boolean equals(Object O) { if(!(O instanceof ByteCount)) return false; ByteCount other = (ByteCount)O; return quantity==other.quantity && ObjectUtils.equals(unit, other.unit); }
@Override public void updateCreditCardNumberAndExpiration( CreditCard creditCard, String cardNumber, byte expirationMonth, short expirationYear, String cardCode ) throws IOException { throw new NotImplementedException(); }
/** * Finds the first index of an element or <code>-1</code> if not found. */ public static <E> int indexOf(E[] array, E element, int fromIndex) { for(int i=fromIndex, len=array.length; i<len; i++) { if(ObjectUtils.equals(array[i], element)) return i; } return -1; }
@Override // @ThreadSafe public void ensureZeros(long position, long len) throws IOException { throw new NotImplementedException("TODO: Implement by using PersistentCollection.zero, passing to put sector aligned"); }
@Override public boolean equals(Object O) { return O!=null && (O instanceof RMIServerSocketFactoryTCP) && ObjectUtils.equals(listenAddress, ((RMIServerSocketFactoryTCP)O).listenAddress) ; }
@Override public ServletOutputStream getOutputStream() { throw new NotImplementedException(); } },
@Override public boolean equals(Object obj) { if(this == obj) return true; if(!(obj instanceof Tuple3<?,?,?>)) return false; Tuple3<?,?,?> other = (Tuple3<?,?,?>)obj; return ObjectUtils.equals(element1, other.element1) && ObjectUtils.equals(element2, other.element2) && ObjectUtils.equals(element3, other.element3) ; }
@Override public void writeTo(Writer out, long off, long len) throws IOException { // Implementation will need to start through beginning throw new NotImplementedException("Implement when first needed."); }
@Override public void updateCreditCardExpiration( CreditCard creditCard, byte expirationMonth, short expirationYear ) throws IOException { throw new NotImplementedException(); }
@Override public boolean equals(Object O) { return O!=null && (O instanceof RMIClientSocketFactoryTCP) && ObjectUtils.equals(localAddress, ((RMIClientSocketFactoryTCP)O).localAddress) ; }
@Override public void updateCreditCardNumberAndExpiration( CreditCard creditCard, String cardNumber, byte expirationMonth, short expirationYear, String cardCode ) throws IOException { throw new NotImplementedException(); }
/** * Finds the last index of an element or <code>-1</code> if not found. */ public static <E> int lastIndexOf(E[] array, E element, int fromIndex) { for(int i=fromIndex; i>=0; i--) { if(ObjectUtils.equals(array[i], element)) return i; } return -1; } // </editor-fold>
@Override public void deleteCreditCard(CreditCard creditCard) throws IOException { throw new NotImplementedException(); } }