Portfolio Code | Clement Colmerauer
Repositories
Site
Software engineering : Airport library
Code
Commits
Branches
Tags
Search
Tree:
12cfefd
Branches
Tags
master
Software engineering : Airport library
build
classes
java
test
com
uca
bookings
Customer.class
Initial commit
ClementColmerauer
commited
12cfefd
at 2024-10-20 09:50:50
Customer.class
Blame
History
Raw
��� 7 � * i j k j l j m n o p q r s t ) u ) v ) w ) x ) y z i ) { | } ) ~ G � � � G � G � � � � � � | � � � � � � � � � � � � � � | � � � id Ljava/util/UUID; firstName Ljava/lang/String; lastName email address paymentMethod Lcom/uca/bookings/PaymentMethod; bookings Ljava/util/Set; Signature +Ljava/util/Set<Lcom/uca/bookings/Booking;>; <init> k(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/uca/bookings/PaymentMethod;)V Code LineNumberTable LocalVariableTable this Lcom/uca/bookings/Customer; isFirstNameValid Z isLastNameValid isEmailValid isAddressValid isPaymentMethodValid StackMapTable � � getFirstName ()Ljava/lang/String; getLastName getEmail getAddress getId ()Ljava/util/UUID; getPaymentMethod "()Lcom/uca/bookings/PaymentMethod; getBookings ()Ljava/util/Set; -()Ljava/util/Set<Lcom/uca/bookings/Booking;>; setEmail (Ljava/lang/String;)V setAdress setPaymentMethod #(Lcom/uca/bookings/PaymentMethod;)V charge (Lorg/joda/money/Money;)V amount Lorg/joda/money/Money; refund removeBooking (Lcom/uca/bookings/Booking;)V booking Lcom/uca/bookings/Booking; removeBookingNonRec addBooking toString hashCode ()I SourceFile Customer.java 8 � � � � B � C � "java/lang/IllegalArgumentException Firstname isn't valid. 8 U Lastname isn't valid. Email isn't valid. Address isn't valid. Payment method can't be null - . / . 0 . 1 . 2 3 java/util/HashSet 4 5 � � N + , � P 8 � Payment method can't be null. Amount can't be null. Y Z ] Z Booking can't be null � � � � M N d I BootstrapMethods � � � � ^ _ � � � � � � � � U � � � e f com/uca/bookings/Customer java/lang/Object java/lang/String com/uca/bookings/PaymentMethod ()V 'com/uca/data_validation/StringValidator isNameValid (Ljava/lang/String;)Z java/util/UUID randomUUID hide (Ljava/util/Collection;)V java/util/Set contains (Ljava/lang/Object;)Z com/uca/bookings/Booking � � isn't referenced for makeConcatWithConstants 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; remove java/lang/System err Ljava/io/PrintStream; already has reservation java/io/PrintStream println add � � � $java/lang/invoke/StringConcatFactory � Lookup InnerClasses �(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; � %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles ! ) * + , - . / . 0 . 1 . 2 3 4 5 6 7 8 9 : � �*� +� 6,� 6-� 6� 6 � � 6 � � Y� �� � Y� �� � Y � � � � Y � � � � Y� �*+� *,� *-� *� *� *� Y� � *� � � ; b '